> For the complete documentation index, see [llms.txt](https://seanhoots.gitbook.io/airplugins/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://seanhoots.gitbook.io/airplugins/air-payment-request-button/actions.md).

# Actions

### charge payment

Call this action to charge a card using the token generated from the Payment request button.

![Charge payment action](/files/-LKteQLlbysqauX3ZleK)

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.&#x20;

### complete payment

{% hint style="danger" %}
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.
{% endhint %}

![complete payment action](/files/-LKtgPWLDXYSwZ7D6BWj)

You can choose a status (success, fail) for this action. Select the success when the payment charge was successful.&#x20;

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.
