provider Api20100401Payment POST /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json
@utdk/twilio /2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json
update an instance of payments with different phases of payment flows.
update an instance of payments with different phases of payment flows.
AccountSid path required
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource.
string
CallSid path required
The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource.
string
Sid path required
The SID of Payments session that needs to be updated.
string

Try it

Authentication
Configure credentials for Twilio - Api
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updatepayments
POST/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Payments/{Sid}.json
update an instance of payments with different phases of payment flows.

Parameters

required

The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that will update the resource.

required

The SID of the call that will update the resource. This should be the same call sid that was used to create payments resource.

required

The SID of Payments session that needs to be updated.

Input

required

A unique token that will be used to ensure that multiple API calls with the same information do not result in multiple transactions. This should be a unique string value per API call and can be a randomly generated.

required

Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests.

The piece of payment information that you wish the caller to enter. Must be one of `payment-card-number`, `expiration-date`, `security-code`, `postal-code`, `bank-routing-number`, `bank-account-number`, or their `-matcher` variants for input confirmation when `RequireMatchingInputs` is enabled.

Indicates whether the current payment session should be cancelled or completed. When `cancel` the payment session is cancelled. When `complete`, Twilio sends the payment information to the selected Pay Connector for processing.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import twilio from '@utdk/twilio';

await twilio.updatepayments()