Studio uses Widgets to represent various parts of Twilio's API that can then be stitched together in your Studio Flow to build out robust applications that require no coding on your part.
New to Twilio Studio? Check out our Getting Started guide!
The Capture Payments Widget allows you to securely capture credit card details on a call and either tokenize or process a payment using a Payment Gateway. This widget uses the underlying TwiML verb <Pay>.
MY_WIDGET_NAME
is the name of your actual widget). For more information on working with variables in Studio, see this guide.Find definitions and examples for these variables at the Payment page.
Name | Liquid Template Language |
---|---|
Expiration Date | {{widgets.MY_WIDGET_NAME.ExpirationDate}} |
Payment Card Number | {{widgets.MY_WIDGET_NAME.PaymentCardNumber}} |
Payment Card Postal Code | {{widgets.MY_WIDGET_NAME.PaymentCardPostalCode}} |
Payment Card Type | {{widgets.MY_WIDGET_NAME.PaymentCardType}} |
Payment Confirmation Code | {{widgets.MY_WIDGET_NAME.PaymentConfirmationCode}} |
Payment Token | {{widgets.MY_WIDGET_NAME.PaymentToken}} |
Security Code | {{widgets.MY_WIDGET_NAME.SecurityCode}} |
This example shows a Flow that enables a customer to pay for their order. The customer will press 1 to confirm the total amount to be charged before they are prompted with questions about their payment information. The call will then notify the customer if their payment was successful. Notice that the connector is not specified which would mean the default Pay Connector is used (the connector with the unique name Default associated with your account).