public class PaymentUpdater extends Updater<Payment>
Constructor and Description |
---|
PaymentUpdater(String pathAccountSid,
String pathCallSid,
String pathSid,
String idempotencyKey,
URI statusCallback)
Construct a new PaymentUpdater.
|
PaymentUpdater(String pathCallSid,
String pathSid,
String idempotencyKey,
URI statusCallback)
Construct a new PaymentUpdater.
|
Modifier and Type | Method and Description |
---|---|
PaymentUpdater |
setCapture(Payment.Capture capture)
The piece of payment information that you wish the caller to enter.
|
PaymentUpdater |
setStatus(Payment.Status status)
Indicates whether the current payment session should be cancelled or
completed.
|
Payment |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public PaymentUpdater(String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
pathCallSid
- The SID of the call that will create the resource.pathSid
- The SID of Payments sessionidempotencyKey
- A unique token that will be used to ensure that
multiple API calls with the same information do not
result in multiple transactions.statusCallback
- Provide an absolute or relative URL to receive status
updates regarding your Pay session.public PaymentUpdater(String pathAccountSid, String pathCallSid, String pathSid, String idempotencyKey, URI statusCallback)
pathAccountSid
- The SID of the Account that will update the resourcepathCallSid
- The SID of the call that will create the resource.pathSid
- The SID of Payments sessionidempotencyKey
- A unique token that will be used to ensure that
multiple API calls with the same information do not
result in multiple transactions.statusCallback
- Provide an absolute or relative URL to receive status
updates regarding your Pay session.public PaymentUpdater setCapture(Payment.Capture capture)
capture
- The piece of payment information that you wish the caller to
enter.public PaymentUpdater setStatus(Payment.Status status)
status
- Indicates whether the current payment session should be
cancelled or completed.public Payment update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.