You've already forked symfony-billing
add method to confirm payment
This commit is contained in:
@@ -41,6 +41,13 @@ class BillingSrv
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function confirmPayment($paimentIntent)
|
||||||
|
{
|
||||||
|
$infoIntent = $this->retrievePurchase($paimentIntent);
|
||||||
|
|
||||||
|
return ($infoIntent['amount'] == $infoIntent['amount_received'] && $infoIntent['amount_capturable'] == 0);
|
||||||
|
}
|
||||||
|
|
||||||
public function retrievePurchase($paimentIntent)
|
public function retrievePurchase($paimentIntent)
|
||||||
{
|
{
|
||||||
$this->setApiKey();
|
$this->setApiKey();
|
||||||
|
|||||||
Reference in New Issue
Block a user