Skip to content

Commit c67ebdd

Browse files
committed
Merge pull request #13 from collizo4sky/master
Updated ReadMe for better integration clarity
2 parents 45cd9b5 + fbc06e5 commit c67ebdd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,12 @@ This gateway supports purchase through a token (payment nonce) only. You can gen
3131
```php
3232
$clientToken = $gateway->clientToken()->send()->getToken();
3333
```
34+
The generated token will come in handy when using the Javascript SDK to display the [Drop-in Payment UI](https://developers.braintreepayments.com/guides/drop-in/javascript/v2) or [hosted fields](https://developers.braintreepayments.com/guides/hosted-fields/setup-and-integration/javascript/v2) used to collect payment method information.
35+
36+
On successful submission of the payment form, a one-time-use token that references a payment method provided by your customer, such as a credit card or PayPal account is dynamically added to the form as the value of a hidden `payment_method_nonce` input field.
37+
38+
Use the `payment_method_nonce` to process your customer order like so:
3439

35-
You can use the Braintree JavaScript client to generate the token for your CreditCard data.
3640

3741
```php
3842
$response = $gateway->purchase([

0 commit comments

Comments
 (0)