Skip to contentSkip to navigationSkip to topbar
Rate this page:
On this page

Capture Payments


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.

(information)

Info

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>.

Capture Payments widget.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.

NameLiquid 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}}

Example: Service Payment

example-service-payment page anchor

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).

Twilio Studio Capture Payments Widget Example Updated.Rate this page:

Need some help?

Terms of service

Copyright © 2024 Twilio Inc.