Skip to content

Commit c49c5a6

Browse files
committed
Update README.md
1 parent 131fd3e commit c49c5a6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,6 @@ $request = $gateway->authorize([
254254
]);
255255
```
256256

257-
For most transactions, either the `card` or `token` parameter is required. For more information on
258-
using tokens, see the Token Billing section below.
259-
260257
When calling the `completeAuthorize` or `completePurchase` methods, the exact same arguments should be provided as
261258
when you made the initial `authorize` or `purchase` call (some gateways will need to verify for example the actual
262259
amount paid equals the amount requested). The only parameter you can omit is `card`.
@@ -348,13 +345,18 @@ try {
348345

349346
## Token Billing
350347

351-
Token billing is still under development. Most likely gateways will be able to implement the
352-
following methods:
348+
Token billing allows you to store a credit card with your gateway, and charge it at a later date.
349+
Token billing is not supported by all gateways. For supported gateways, the following methods
350+
are available:
353351

354-
* `createCard($options)` - returns a response object which includes a `token`, which can be used for future transactions
352+
* `createCard($options)` - returns a response object which includes a `cardReference`, which can be used for future transactions
355353
* `updateCard($options)` - update a stored card, not all gateways support this method
356354
* `deleteCard($options)` - remove a stored card, not all gateways support this method
357355

356+
Once you have a `cardReference`, you can use it instead of the `card` parameter when creating a charge:
357+
358+
$gateway->purchase(['amount' => 1000, 'cardReference' => 'abc']);
359+
358360
## Recurring Billing
359361

360362
At this stage, automatic recurring payments functionality is out of scope for this library.

0 commit comments

Comments
 (0)