Actions
The following are the actions provided by this plugin
Last updated
The following are the actions provided by this plugin
Last updated
Call this action to charge a card using the token generated from the Payment request button.
Note that the Amount should be the subunit of the currency. Example for a usd currency the amount is in cents. So for a $20 charge, it should be 2000 (i.e. 20 x 100). If your input value is not in cent use the multiplication function ( * ) to multiply it by 100 as shown in the image above.
This action MUST always be called after the payment charge when you use this plugin. Without calling this action the payment dialog will not close.
You can choose a status (success, fail) for this action. Select the success when the payment charge was successful.
Select the fail if the payment charge failed. This will show a message to the user in the payment dialog that the payment wasn't successful so they could try again.