-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
108 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,6 +124,30 @@ You can also charge customer card directly from you website using the Card charg | |
echo '<pre>'; | ||
``` | ||
|
||
### Tokenized Charge | ||
|
||
the feature allow you to charge customer card. It is usually used for recurring payment. Where you can automatically charge customer card without physical interaction. | ||
Customer must first make a payment on your website. After the payment was successful you can securely store teh customer card token in you database. | ||
This token will be used to chage customer card. And take note that the token must match the customer email every time you want to initiate a tokenized charge. | ||
|
||
```php | ||
$data = [ | ||
'token' => "flw-t1nf-2dd950bd8f3c966d5a5453128c1ed517-m03k", | ||
'country' => 'NG', | ||
'first_name' => 'John', | ||
'last_name' => "Doe", | ||
'currency' => 'NGN', | ||
'tx_ref' => time(), | ||
'amount' => '500', | ||
'email' => '[email protected]', | ||
'narration' => 'Cable subscription' | ||
]; | ||
|
||
echo '<pre>'; | ||
var_dump(CollectPayment::tokenizeCharge($data)); | ||
echo '<pre>'; | ||
``` | ||
|
||
### Verify transaction | ||
|
||
Next after collecting payment from our customer. In the above request we set a redirect page where flutterwave will send | ||
|
Oops, something went wrong.