Skip to content

Commit 84f5b5f

Browse files
authored
Merge pull request thephpleague#629 from eileenmcnaughton/patch-6
Augment section on createCard indicating / recommending patterns
2 parents 62ef09f + e78c09d commit 84f5b5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,14 @@ are available:
552552
* `updateCard($options)` - update a stored card, not all gateways support this method
553553
* `deleteCard($options)` - remove a stored card, not all gateways support this method
554554

555-
Once you have a `cardReference`, you can use it instead of the `card` parameter when creating a charge:
555+
Once you have a `cardReference`, (which should be available from the response object
556+
using getCardReference) you can use it instead of the `card` parameter when creating a charge:
556557

557558
$gateway->purchase(array('amount' => '10.00', 'cardReference' => 'abc'));
559+
560+
In many cases the createCard action will also process the initial payment at the same time.
561+
In these cases you should pass in the 'action' ('authorize' or 'purchase') in the createCard
562+
options.
558563

559564
## Recurring Billing
560565

0 commit comments

Comments
 (0)