Skip to content

Instantly share code, notes, and snippets.

@kirillrocks
Created May 1, 2019 15:32
Show Gist options
  • Save kirillrocks/d5be02783730c1d3951a6f28708ad4ce to your computer and use it in GitHub Desktop.
Save kirillrocks/d5be02783730c1d3951a6f28708ad4ce to your computer and use it in GitHub Desktop.
The generated token will come in handy when using the Javascript SDK to display the Drop-in Payment UI or hosted fields used to collect payment method information.
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment