Skip to main content
Call this method when you are ready to submit the data in the fields. This method returns a Promise that you can await or you can pass in a callback. The callback will be invoked when the field data has been submitted successfully or there was an error. Once the data is submitted successfully, you are ready to finish the payment on your server.

Example with Promise

Example with callback