2026/11/30 - Amazon Bedrock AgentCore - 7 new1 updated api methods
Changes Amazon Bedrock AgentCore payments now supports traditional commerce. Your shopping agent or app can take buyer-approved payments through your own Payment Service Provider, with AgentCore handling credentials, buyer approval, and the audit trail.
Initiate the approved payment intent with its stored payment connector.
Creates a partner-side payment session only after Buyer Approval is confirmed for the current PaymentIntent version. The connector is selected at CreatePaymentIntent and loaded by the service.
Authentication: IAM or OAuth
See also: AWS API Documentation
Request Syntax
client.initiate_payment_intent(
userId='string',
agentName='string',
paymentManagerArn='string',
paymentIntentId='string',
clientToken='string'
)
string
The user ID associated with this payment intent.
string
The agent name associated with this request, used for observability.
string
[REQUIRED]
The ARN of the payment manager that owns this payment intent.
string
[REQUIRED]
The ID of the payment intent to initiate.
string
Idempotency token to ensure request uniqueness.
This field is autopopulated if not provided.
dict
Response Syntax
{
'paymentManagerArn': 'string',
'paymentConnectorId': 'string',
'paymentIntentId': 'string',
'partnerIntentReference': 'string',
'partnerIntentData': {...}|[...]|123|123.4|'string'|True|None
}
Response Structure
(dict) --
Response structure for initiating a payment intent
paymentManagerArn (string) --
The ARN of the payment manager.
paymentConnectorId (string) --
The ID of the payment connector that was initiated.
paymentIntentId (string) --
The ID of the payment intent that was initiated.
partnerIntentReference (string) --
The partner reference identifier needed for frontend rendering.
partnerIntentData (:ref:`document<document>`) --
Partner intent data needed for frontend rendering (stringified JSON or encrypted string). For the SETUP capture strategy (save-and-reuse), this carries the Stripe-hosted Checkout Session URL the buyer opens to save a payment method with no charge — the setup Checkout Session is created here, during InitiatePaymentIntent, not at CreatePaymentIntent.
Get a payment intent by ID.
Returns the full payment intent record from the database.
Authentication: IAM or OAuth
See also: AWS API Documentation
Request Syntax
client.get_payment_intent(
userId='string',
agentName='string',
paymentManagerArn='string',
paymentIntentId='string'
)
string
The user ID associated with this payment intent.
string
The agent name associated with this request, used for observability.
string
[REQUIRED]
The ARN of the payment manager that owns this payment intent.
string
[REQUIRED]
The ID of the payment intent to retrieve.
dict
Response Syntax
{
'paymentIntent': {
'paymentIntentId': 'string',
'paymentManagerArn': 'string',
'version': 123,
'buyerApprovalStatus': 'BUYER_APPROVAL_REQUIRED'|'BUYER_APPROVAL_IN_PROGRESS'|'BUYER_APPROVAL_CONFIRMED'|'BUYER_APPROVAL_REJECTED'|'BUYER_APPROVAL_EXPIRED',
'paymentConnectorId': 'string',
'checkoutDetails': {
'lineItems': [
{
'sku': 'string',
'quantity': 123,
'amount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
],
'totalAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'amountBreakdown': {
'shipping': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'tax': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'discount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
'amountMode': 'EXACT'|'UPTO',
'returnUrl': 'string',
'referenceId': 'string',
'merchant': {
'name': 'string',
'website': 'string'
}
},
'status': 'CREATED'|'INITIATED'|'AUTHORIZED'|'PARTIALLY_CAPTURED'|'CAPTURED'|'FAILED'|'CANCELLED'|'SAVE_PENDING'|'SAVED'|'SAVE_FAILED'|'REAUTH_REQUIRED'|'PAYMENT_DECLINED',
'captureStrategy': 'INSTANT'|'FUTURE'|'SETUP',
'authorizedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'capturedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'partnerIntentReference': 'string',
'partnerAuthorizationReference': 'string',
'captures': [
{
'captureId': 'string',
'captureAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'status': 'CAPTURE_PENDING'|'CAPTURED'|'FAILED',
'partnerCaptureReference': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Response structure for getting a payment intent
paymentIntent (dict) --
The requested payment intent.
paymentIntentId (string) --
The unique identifier for this payment intent.
paymentManagerArn (string) --
The ARN of the payment manager that owns this payment intent.
version (integer) --
The immutable version represented by this response.
buyerApprovalStatus (string) --
Buyer Approval state for the current PaymentIntent version.
paymentConnectorId (string) --
The single connector selected when this payment intent was created.
checkoutDetails (dict) --
The checkout details for this payment intent.
lineItems (list) --
The line items included in this payment intent. When present, the service requires the sum of amount × quantity across them, plus amountBreakdown.shipping and amountBreakdown.tax, minus amountBreakdown.discount, to equal totalAmount, or, for a SETUP intent whose totalAmount is an UPTO ceiling, not to exceed it.
(dict) --
A line item in a payment intent
sku (string) --
The SKU identifier for this line item.
quantity (integer) --
The quantity of this line item. Defaults to 1 if not specified.
amount (dict) --
The unit price of one item. The line total is amount × quantity.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
totalAmount (dict) --
The total amount for this payment intent.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountBreakdown (dict) --
The shipping, tax and discount that make up totalAmount alongside the line items. Optional; absent means none of them apply.
shipping (dict) --
The shipping charge for the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
tax (dict) --
The tax charged on the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
discount (dict) --
The discount applied to the order, as a positive amount that is subtracted from the total.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountMode (string) --
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
returnUrl (string) --
The URL to redirect to after payment selection.
referenceId (string) --
The merchant's reference identifier. The service sends it to the payment provider. Optional.
merchant (dict) --
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate payee when the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.
name (string) --
The merchant name. The widget shows it to the buyer on the Trusted Surface.
website (string) --
The optional website URL. The widget shows it so the buyer can confirm the payee.
status (string) --
The current status of this payment intent.
captureStrategy (string) --
The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.
authorizedAmount (dict) --
The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
capturedAmount (dict) --
The cumulative amount captured across all captures (aggregate roll-up).
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
partnerIntentReference (string) --
The PSP session reference created by InitiatePaymentIntent.
partnerAuthorizationReference (string) --
The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId). Consumed by CapturePaymentIntent and CancelPaymentIntent.
captures (list) --
The captures created against this intent (populated on Get). Empty until first capture.
(dict) --
A capture of previously-authorized funds against a payment intent. Created by CapturePaymentIntent (FUTURE) or at Authorize (INSTANT).
captureId (string) --
The AgentCore identifier for this capture.
captureAmount (dict) --
The amount captured.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
status (string) --
The status of this capture.
partnerCaptureReference (string) --
The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
createdAt (datetime) --
The timestamp when this capture was created.
updatedAt (datetime) --
The timestamp when this capture was last updated.
createdAt (datetime) --
The timestamp when this payment intent was created.
updatedAt (datetime) --
The timestamp when this payment intent was last updated.
Authorize a payment intent with its stored payment connector.
Completes provider authorization and transitions the intent to AUTHORIZED (captureStrategy=FUTURE — funds held) or CAPTURED (captureStrategy=INSTANT — funds captured). For Stripe this is a server-side verify of the browser-confirmed authorization; for PayPal/Amazon Pay it is a mandatory server call that produces the authorization/charge-permission.
The partnerCallbackResult varies by partner:
Stripe: not required (confirmed client-side)
PayPal: not required
Amazon Pay: amazonCheckoutSessionId (required)
Authentication: IAM or OAuth
See also: AWS API Documentation
Request Syntax
client.authorize_payment_intent(
userId='string',
agentName='string',
paymentManagerArn='string',
paymentIntentId='string',
partnerCallbackResult='string',
clientToken='string'
)
string
The user ID associated with this payment intent.
string
The agent name associated with this request, used for observability.
string
[REQUIRED]
The ARN of the payment manager that owns this payment intent.
string
[REQUIRED]
The ID of the payment intent to authorize (must be in INITIATED status).
string
Optional callback result returned by the payment partner after browser interaction. Stripe and PayPal do not require it in the current flow; Amazon Pay uses it.
string
Idempotency token to ensure request uniqueness.
This field is autopopulated if not provided.
dict
Response Syntax
{
'paymentIntent': {
'paymentIntentId': 'string',
'paymentManagerArn': 'string',
'version': 123,
'buyerApprovalStatus': 'BUYER_APPROVAL_REQUIRED'|'BUYER_APPROVAL_IN_PROGRESS'|'BUYER_APPROVAL_CONFIRMED'|'BUYER_APPROVAL_REJECTED'|'BUYER_APPROVAL_EXPIRED',
'paymentConnectorId': 'string',
'checkoutDetails': {
'lineItems': [
{
'sku': 'string',
'quantity': 123,
'amount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
],
'totalAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'amountBreakdown': {
'shipping': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'tax': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'discount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
'amountMode': 'EXACT'|'UPTO',
'returnUrl': 'string',
'referenceId': 'string',
'merchant': {
'name': 'string',
'website': 'string'
}
},
'status': 'CREATED'|'INITIATED'|'AUTHORIZED'|'PARTIALLY_CAPTURED'|'CAPTURED'|'FAILED'|'CANCELLED'|'SAVE_PENDING'|'SAVED'|'SAVE_FAILED'|'REAUTH_REQUIRED'|'PAYMENT_DECLINED',
'captureStrategy': 'INSTANT'|'FUTURE'|'SETUP',
'authorizedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'capturedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'partnerIntentReference': 'string',
'partnerAuthorizationReference': 'string',
'captures': [
{
'captureId': 'string',
'captureAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'status': 'CAPTURE_PENDING'|'CAPTURED'|'FAILED',
'partnerCaptureReference': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
'capture': {
'captureId': 'string',
'captureAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'status': 'CAPTURE_PENDING'|'CAPTURED'|'FAILED',
'partnerCaptureReference': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Response structure for authorizing a payment intent
paymentIntent (dict) --
The updated payment intent (status AUTHORIZED for FUTURE, CAPTURED for INSTANT). For INSTANT, if the provider accepted the capture but has not settled it (capture status CAPTURE_PENDING), the intent stays INITIATED; call AuthorizePaymentIntent again to refresh it. Its partnerAuthorizationReference carries the provider authorization reference.
paymentIntentId (string) --
The unique identifier for this payment intent.
paymentManagerArn (string) --
The ARN of the payment manager that owns this payment intent.
version (integer) --
The immutable version represented by this response.
buyerApprovalStatus (string) --
Buyer Approval state for the current PaymentIntent version.
paymentConnectorId (string) --
The single connector selected when this payment intent was created.
checkoutDetails (dict) --
The checkout details for this payment intent.
lineItems (list) --
The line items included in this payment intent. When present, the service requires the sum of amount × quantity across them, plus amountBreakdown.shipping and amountBreakdown.tax, minus amountBreakdown.discount, to equal totalAmount, or, for a SETUP intent whose totalAmount is an UPTO ceiling, not to exceed it.
(dict) --
A line item in a payment intent
sku (string) --
The SKU identifier for this line item.
quantity (integer) --
The quantity of this line item. Defaults to 1 if not specified.
amount (dict) --
The unit price of one item. The line total is amount × quantity.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
totalAmount (dict) --
The total amount for this payment intent.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountBreakdown (dict) --
The shipping, tax and discount that make up totalAmount alongside the line items. Optional; absent means none of them apply.
shipping (dict) --
The shipping charge for the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
tax (dict) --
The tax charged on the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
discount (dict) --
The discount applied to the order, as a positive amount that is subtracted from the total.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountMode (string) --
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
returnUrl (string) --
The URL to redirect to after payment selection.
referenceId (string) --
The merchant's reference identifier. The service sends it to the payment provider. Optional.
merchant (dict) --
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate payee when the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.
name (string) --
The merchant name. The widget shows it to the buyer on the Trusted Surface.
website (string) --
The optional website URL. The widget shows it so the buyer can confirm the payee.
status (string) --
The current status of this payment intent.
captureStrategy (string) --
The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.
authorizedAmount (dict) --
The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
capturedAmount (dict) --
The cumulative amount captured across all captures (aggregate roll-up).
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
partnerIntentReference (string) --
The PSP session reference created by InitiatePaymentIntent.
partnerAuthorizationReference (string) --
The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId). Consumed by CapturePaymentIntent and CancelPaymentIntent.
captures (list) --
The captures created against this intent (populated on Get). Empty until first capture.
(dict) --
A capture of previously-authorized funds against a payment intent. Created by CapturePaymentIntent (FUTURE) or at Authorize (INSTANT).
captureId (string) --
The AgentCore identifier for this capture.
captureAmount (dict) --
The amount captured.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
status (string) --
The status of this capture.
partnerCaptureReference (string) --
The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
createdAt (datetime) --
The timestamp when this capture was created.
updatedAt (datetime) --
The timestamp when this capture was last updated.
createdAt (datetime) --
The timestamp when this payment intent was created.
updatedAt (datetime) --
The timestamp when this payment intent was last updated.
capture (dict) --
The capture created when captureStrategy=INSTANT (funds captured at authorization).
captureId (string) --
The AgentCore identifier for this capture.
captureAmount (dict) --
The amount captured.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
status (string) --
The status of this capture.
partnerCaptureReference (string) --
The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
createdAt (datetime) --
The timestamp when this capture was created.
updatedAt (datetime) --
The timestamp when this capture was last updated.
Cancel a payment intent.
Cancels an intent that has not been captured: a pre-authorization intent is abandoned (CANCELLED), and an authorized (held) intent has its authorization released / voided. Terminal intents (CAPTURED, FAILED, already CANCELLED) cannot be cancelled.
Authentication: IAM or OAuth
See also: AWS API Documentation
Request Syntax
client.cancel_payment_intent(
userId='string',
agentName='string',
paymentManagerArn='string',
paymentIntentId='string',
clientToken='string'
)
string
The user ID associated with this payment intent.
string
The agent name associated with this request, used for observability.
string
[REQUIRED]
The ARN of the payment manager that owns this payment intent.
string
[REQUIRED]
The ID of the payment intent to cancel.
string
Idempotency token to ensure request uniqueness.
This field is autopopulated if not provided.
dict
Response Syntax
{
'paymentIntent': {
'paymentIntentId': 'string',
'paymentManagerArn': 'string',
'version': 123,
'buyerApprovalStatus': 'BUYER_APPROVAL_REQUIRED'|'BUYER_APPROVAL_IN_PROGRESS'|'BUYER_APPROVAL_CONFIRMED'|'BUYER_APPROVAL_REJECTED'|'BUYER_APPROVAL_EXPIRED',
'paymentConnectorId': 'string',
'checkoutDetails': {
'lineItems': [
{
'sku': 'string',
'quantity': 123,
'amount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
],
'totalAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'amountBreakdown': {
'shipping': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'tax': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'discount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
'amountMode': 'EXACT'|'UPTO',
'returnUrl': 'string',
'referenceId': 'string',
'merchant': {
'name': 'string',
'website': 'string'
}
},
'status': 'CREATED'|'INITIATED'|'AUTHORIZED'|'PARTIALLY_CAPTURED'|'CAPTURED'|'FAILED'|'CANCELLED'|'SAVE_PENDING'|'SAVED'|'SAVE_FAILED'|'REAUTH_REQUIRED'|'PAYMENT_DECLINED',
'captureStrategy': 'INSTANT'|'FUTURE'|'SETUP',
'authorizedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'capturedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'partnerIntentReference': 'string',
'partnerAuthorizationReference': 'string',
'captures': [
{
'captureId': 'string',
'captureAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'status': 'CAPTURE_PENDING'|'CAPTURED'|'FAILED',
'partnerCaptureReference': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Response structure for cancelling a payment intent
paymentIntent (dict) --
The updated payment intent (status CANCELLED).
paymentIntentId (string) --
The unique identifier for this payment intent.
paymentManagerArn (string) --
The ARN of the payment manager that owns this payment intent.
version (integer) --
The immutable version represented by this response.
buyerApprovalStatus (string) --
Buyer Approval state for the current PaymentIntent version.
paymentConnectorId (string) --
The single connector selected when this payment intent was created.
checkoutDetails (dict) --
The checkout details for this payment intent.
lineItems (list) --
The line items included in this payment intent. When present, the service requires the sum of amount × quantity across them, plus amountBreakdown.shipping and amountBreakdown.tax, minus amountBreakdown.discount, to equal totalAmount, or, for a SETUP intent whose totalAmount is an UPTO ceiling, not to exceed it.
(dict) --
A line item in a payment intent
sku (string) --
The SKU identifier for this line item.
quantity (integer) --
The quantity of this line item. Defaults to 1 if not specified.
amount (dict) --
The unit price of one item. The line total is amount × quantity.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
totalAmount (dict) --
The total amount for this payment intent.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountBreakdown (dict) --
The shipping, tax and discount that make up totalAmount alongside the line items. Optional; absent means none of them apply.
shipping (dict) --
The shipping charge for the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
tax (dict) --
The tax charged on the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
discount (dict) --
The discount applied to the order, as a positive amount that is subtracted from the total.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountMode (string) --
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
returnUrl (string) --
The URL to redirect to after payment selection.
referenceId (string) --
The merchant's reference identifier. The service sends it to the payment provider. Optional.
merchant (dict) --
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate payee when the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.
name (string) --
The merchant name. The widget shows it to the buyer on the Trusted Surface.
website (string) --
The optional website URL. The widget shows it so the buyer can confirm the payee.
status (string) --
The current status of this payment intent.
captureStrategy (string) --
The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.
authorizedAmount (dict) --
The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
capturedAmount (dict) --
The cumulative amount captured across all captures (aggregate roll-up).
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
partnerIntentReference (string) --
The PSP session reference created by InitiatePaymentIntent.
partnerAuthorizationReference (string) --
The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId). Consumed by CapturePaymentIntent and CancelPaymentIntent.
captures (list) --
The captures created against this intent (populated on Get). Empty until first capture.
(dict) --
A capture of previously-authorized funds against a payment intent. Created by CapturePaymentIntent (FUTURE) or at Authorize (INSTANT).
captureId (string) --
The AgentCore identifier for this capture.
captureAmount (dict) --
The amount captured.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
status (string) --
The status of this capture.
partnerCaptureReference (string) --
The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
createdAt (datetime) --
The timestamp when this capture was created.
updatedAt (datetime) --
The timestamp when this capture was last updated.
createdAt (datetime) --
The timestamp when this payment intent was created.
updatedAt (datetime) --
The timestamp when this payment intent was last updated.
Capture previously-authorized funds for a payment intent (FUTURE capture strategy).
Settles funds held at Authorize using the intent's partnerAuthorizationReference. Transitions the intent to CAPTURED (full/final) or PARTIALLY_CAPTURED. Not used for INSTANT intents (already captured at Authorize). Supported for Stripe and PayPal.
If the provider accepts the capture but has not settled it yet (e.g. PayPal capture status PENDING), the capture is returned with status CAPTURE_PENDING, it is not counted in the intent's capturedAmount, and the intent status is unchanged. Do not retry with a new clientToken: the capture already exists at the provider. Any later CapturePaymentIntent call first refreshes pending captures, and GetPaymentIntent lists them.
Authentication: IAM or OAuth
See also: AWS API Documentation
Request Syntax
client.capture_payment_intent(
userId='string',
agentName='string',
paymentManagerArn='string',
paymentIntentId='string',
captureAmount={
'value': 'string',
'currency': 'USD'|'EUR'
},
clientToken='string'
)
string
The user ID associated with this payment intent.
string
The agent name associated with this request, used for observability.
string
[REQUIRED]
The ARN of the payment manager that owns this payment intent.
string
[REQUIRED]
The ID of the payment intent to capture (must be in AUTHORIZED or PARTIALLY_CAPTURED status).
dict
The amount to capture. Omit to capture the remaining authorized amount.
value (string) -- [REQUIRED]
The numeric value of the amount.
currency (string) -- [REQUIRED]
The currency code for this amount.
string
Idempotency token identifying this capture. AWS SDKs and the CLI generate one automatically.
An intent can be captured more than once (partial captures), so the service cannot tell a retry from a new capture on its own: the token is what makes them distinguishable. Reuse the same clientToken when retrying the same capture (the original result is returned and the provider is not charged again); a new clientToken always requests a new capture.
This field is autopopulated if not provided.
dict
Response Syntax
{
'paymentIntent': {
'paymentIntentId': 'string',
'paymentManagerArn': 'string',
'version': 123,
'buyerApprovalStatus': 'BUYER_APPROVAL_REQUIRED'|'BUYER_APPROVAL_IN_PROGRESS'|'BUYER_APPROVAL_CONFIRMED'|'BUYER_APPROVAL_REJECTED'|'BUYER_APPROVAL_EXPIRED',
'paymentConnectorId': 'string',
'checkoutDetails': {
'lineItems': [
{
'sku': 'string',
'quantity': 123,
'amount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
],
'totalAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'amountBreakdown': {
'shipping': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'tax': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'discount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
'amountMode': 'EXACT'|'UPTO',
'returnUrl': 'string',
'referenceId': 'string',
'merchant': {
'name': 'string',
'website': 'string'
}
},
'status': 'CREATED'|'INITIATED'|'AUTHORIZED'|'PARTIALLY_CAPTURED'|'CAPTURED'|'FAILED'|'CANCELLED'|'SAVE_PENDING'|'SAVED'|'SAVE_FAILED'|'REAUTH_REQUIRED'|'PAYMENT_DECLINED',
'captureStrategy': 'INSTANT'|'FUTURE'|'SETUP',
'authorizedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'capturedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'partnerIntentReference': 'string',
'partnerAuthorizationReference': 'string',
'captures': [
{
'captureId': 'string',
'captureAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'status': 'CAPTURE_PENDING'|'CAPTURED'|'FAILED',
'partnerCaptureReference': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
'capture': {
'captureId': 'string',
'captureAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'status': 'CAPTURE_PENDING'|'CAPTURED'|'FAILED',
'partnerCaptureReference': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Response structure for capturing a payment intent
paymentIntent (dict) --
The updated payment intent (status CAPTURED or PARTIALLY_CAPTURED; capturedAmount rolled up).
paymentIntentId (string) --
The unique identifier for this payment intent.
paymentManagerArn (string) --
The ARN of the payment manager that owns this payment intent.
version (integer) --
The immutable version represented by this response.
buyerApprovalStatus (string) --
Buyer Approval state for the current PaymentIntent version.
paymentConnectorId (string) --
The single connector selected when this payment intent was created.
checkoutDetails (dict) --
The checkout details for this payment intent.
lineItems (list) --
The line items included in this payment intent. When present, the service requires the sum of amount × quantity across them, plus amountBreakdown.shipping and amountBreakdown.tax, minus amountBreakdown.discount, to equal totalAmount, or, for a SETUP intent whose totalAmount is an UPTO ceiling, not to exceed it.
(dict) --
A line item in a payment intent
sku (string) --
The SKU identifier for this line item.
quantity (integer) --
The quantity of this line item. Defaults to 1 if not specified.
amount (dict) --
The unit price of one item. The line total is amount × quantity.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
totalAmount (dict) --
The total amount for this payment intent.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountBreakdown (dict) --
The shipping, tax and discount that make up totalAmount alongside the line items. Optional; absent means none of them apply.
shipping (dict) --
The shipping charge for the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
tax (dict) --
The tax charged on the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
discount (dict) --
The discount applied to the order, as a positive amount that is subtracted from the total.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountMode (string) --
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
returnUrl (string) --
The URL to redirect to after payment selection.
referenceId (string) --
The merchant's reference identifier. The service sends it to the payment provider. Optional.
merchant (dict) --
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate payee when the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.
name (string) --
The merchant name. The widget shows it to the buyer on the Trusted Surface.
website (string) --
The optional website URL. The widget shows it so the buyer can confirm the payee.
status (string) --
The current status of this payment intent.
captureStrategy (string) --
The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.
authorizedAmount (dict) --
The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
capturedAmount (dict) --
The cumulative amount captured across all captures (aggregate roll-up).
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
partnerIntentReference (string) --
The PSP session reference created by InitiatePaymentIntent.
partnerAuthorizationReference (string) --
The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId). Consumed by CapturePaymentIntent and CancelPaymentIntent.
captures (list) --
The captures created against this intent (populated on Get). Empty until first capture.
(dict) --
A capture of previously-authorized funds against a payment intent. Created by CapturePaymentIntent (FUTURE) or at Authorize (INSTANT).
captureId (string) --
The AgentCore identifier for this capture.
captureAmount (dict) --
The amount captured.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
status (string) --
The status of this capture.
partnerCaptureReference (string) --
The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
createdAt (datetime) --
The timestamp when this capture was created.
updatedAt (datetime) --
The timestamp when this capture was last updated.
createdAt (datetime) --
The timestamp when this payment intent was created.
updatedAt (datetime) --
The timestamp when this payment intent was last updated.
capture (dict) --
The capture that was created.
captureId (string) --
The AgentCore identifier for this capture.
captureAmount (dict) --
The amount captured.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
status (string) --
The status of this capture.
partnerCaptureReference (string) --
The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
createdAt (datetime) --
The timestamp when this capture was created.
updatedAt (datetime) --
The timestamp when this capture was last updated.
Create a new payment intent.
A payment intent represents a customer's intention to make a payment. It captures the checkout details (line items, total amount, return URL) and serves as the entry point for the traditional payment flow before a specific connector is selected.
Authentication: IAM or OAuth
See also: AWS API Documentation
Request Syntax
client.create_payment_intent(
userId='string',
agentName='string',
paymentManagerArn='string',
paymentConnectorId='string',
checkoutDetails={
'lineItems': [
{
'sku': 'string',
'quantity': 123,
'amount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
],
'totalAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'amountBreakdown': {
'shipping': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'tax': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'discount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
'amountMode': 'EXACT'|'UPTO',
'returnUrl': 'string',
'referenceId': 'string',
'merchant': {
'name': 'string',
'website': 'string'
}
},
captureStrategy='INSTANT'|'FUTURE'|'SETUP',
clientToken='string'
)
string
The user ID associated with this payment intent.
string
The agent name associated with this request, used for observability.
string
[REQUIRED]
The ARN of the payment manager that owns this payment intent.
string
[REQUIRED]
The connector used for this payment intent.
dict
[REQUIRED]
The checkout details for this payment intent including line items and total amount.
lineItems (list) --
The line items included in this payment intent. When present, the service requires the sum of amount × quantity across them, plus amountBreakdown.shipping and amountBreakdown.tax, minus amountBreakdown.discount, to equal totalAmount, or, for a SETUP intent whose totalAmount is an UPTO ceiling, not to exceed it.
(dict) --
A line item in a payment intent
sku (string) -- [REQUIRED]
The SKU identifier for this line item.
quantity (integer) -- [REQUIRED]
The quantity of this line item. Defaults to 1 if not specified.
amount (dict) -- [REQUIRED]
The unit price of one item. The line total is amount × quantity.
value (string) -- [REQUIRED]
The numeric value of the amount.
currency (string) -- [REQUIRED]
The currency code for this amount.
totalAmount (dict) -- [REQUIRED]
The total amount for this payment intent.
value (string) -- [REQUIRED]
The numeric value of the amount.
currency (string) -- [REQUIRED]
The currency code for this amount.
amountBreakdown (dict) --
The shipping, tax and discount that make up totalAmount alongside the line items. Optional; absent means none of them apply.
shipping (dict) --
The shipping charge for the order.
value (string) -- [REQUIRED]
The numeric value of the amount.
currency (string) -- [REQUIRED]
The currency code for this amount.
tax (dict) --
The tax charged on the order.
value (string) -- [REQUIRED]
The numeric value of the amount.
currency (string) -- [REQUIRED]
The currency code for this amount.
discount (dict) --
The discount applied to the order, as a positive amount that is subtracted from the total.
value (string) -- [REQUIRED]
The numeric value of the amount.
currency (string) -- [REQUIRED]
The currency code for this amount.
amountMode (string) --
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
returnUrl (string) --
The URL to redirect to after payment selection.
referenceId (string) --
The merchant's reference identifier. The service sends it to the payment provider. Optional.
merchant (dict) -- [REQUIRED]
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate payee when the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.
name (string) -- [REQUIRED]
The merchant name. The widget shows it to the buyer on the Trusted Surface.
website (string) --
The optional website URL. The widget shows it so the buyer can confirm the payee.
string
[REQUIRED]
The capture timing strategy (INSTANT | FUTURE).
string
Idempotency token to ensure request uniqueness.
This field is autopopulated if not provided.
dict
Response Syntax
{
'paymentIntent': {
'paymentIntentId': 'string',
'paymentManagerArn': 'string',
'version': 123,
'buyerApprovalStatus': 'BUYER_APPROVAL_REQUIRED'|'BUYER_APPROVAL_IN_PROGRESS'|'BUYER_APPROVAL_CONFIRMED'|'BUYER_APPROVAL_REJECTED'|'BUYER_APPROVAL_EXPIRED',
'paymentConnectorId': 'string',
'checkoutDetails': {
'lineItems': [
{
'sku': 'string',
'quantity': 123,
'amount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
],
'totalAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'amountBreakdown': {
'shipping': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'tax': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'discount': {
'value': 'string',
'currency': 'USD'|'EUR'
}
},
'amountMode': 'EXACT'|'UPTO',
'returnUrl': 'string',
'referenceId': 'string',
'merchant': {
'name': 'string',
'website': 'string'
}
},
'status': 'CREATED'|'INITIATED'|'AUTHORIZED'|'PARTIALLY_CAPTURED'|'CAPTURED'|'FAILED'|'CANCELLED'|'SAVE_PENDING'|'SAVED'|'SAVE_FAILED'|'REAUTH_REQUIRED'|'PAYMENT_DECLINED',
'captureStrategy': 'INSTANT'|'FUTURE'|'SETUP',
'authorizedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'capturedAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'partnerIntentReference': 'string',
'partnerAuthorizationReference': 'string',
'captures': [
{
'captureId': 'string',
'captureAmount': {
'value': 'string',
'currency': 'USD'|'EUR'
},
'status': 'CAPTURE_PENDING'|'CAPTURED'|'FAILED',
'partnerCaptureReference': 'string',
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
},
],
'createdAt': datetime(2015, 1, 1),
'updatedAt': datetime(2015, 1, 1)
}
}
Response Structure
(dict) --
Response structure for creating a payment intent
paymentIntent (dict) --
The payment intent that you created.
paymentIntentId (string) --
The unique identifier for this payment intent.
paymentManagerArn (string) --
The ARN of the payment manager that owns this payment intent.
version (integer) --
The immutable version represented by this response.
buyerApprovalStatus (string) --
Buyer Approval state for the current PaymentIntent version.
paymentConnectorId (string) --
The single connector selected when this payment intent was created.
checkoutDetails (dict) --
The checkout details for this payment intent.
lineItems (list) --
The line items included in this payment intent. When present, the service requires the sum of amount × quantity across them, plus amountBreakdown.shipping and amountBreakdown.tax, minus amountBreakdown.discount, to equal totalAmount, or, for a SETUP intent whose totalAmount is an UPTO ceiling, not to exceed it.
(dict) --
A line item in a payment intent
sku (string) --
The SKU identifier for this line item.
quantity (integer) --
The quantity of this line item. Defaults to 1 if not specified.
amount (dict) --
The unit price of one item. The line total is amount × quantity.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
totalAmount (dict) --
The total amount for this payment intent.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountBreakdown (dict) --
The shipping, tax and discount that make up totalAmount alongside the line items. Optional; absent means none of them apply.
shipping (dict) --
The shipping charge for the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
tax (dict) --
The tax charged on the order.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
discount (dict) --
The discount applied to the order, as a positive amount that is subtracted from the total.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
amountMode (string) --
How to interpret totalAmount. EXACT (default) charges totalAmount exactly. UPTO treats totalAmount as a ceiling for the save-and-reuse flow: off-session charges accumulate up to it, and the service rejects any charge that would take the total above it. Optional; absent means EXACT, so existing callers are unaffected.
returnUrl (string) --
The URL to redirect to after payment selection.
referenceId (string) --
The merchant's reference identifier. The service sends it to the payment provider. Optional.
merchant (dict) --
The merchant (payee) that receives this payment. The service copies it into the Payment Mandate payee when the buyer confirms, so the payee is trusted server state — the agent does not supply it at authorization.
name (string) --
The merchant name. The widget shows it to the buyer on the Trusted Surface.
website (string) --
The optional website URL. The widget shows it so the buyer can confirm the payee.
status (string) --
The current status of this payment intent.
captureStrategy (string) --
The capture timing strategy for this intent (INSTANT | FUTURE). Set at CreatePaymentIntent.
authorizedAmount (dict) --
The amount held at Authorize (for FUTURE); normally equal to checkoutDetails.totalAmount.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
capturedAmount (dict) --
The cumulative amount captured across all captures (aggregate roll-up).
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
partnerIntentReference (string) --
The PSP session reference created by InitiatePaymentIntent.
partnerAuthorizationReference (string) --
The provider authorization reference produced at Authorize (Stripe pi_, PayPal authorization_id, Amazon Pay chargeId). Consumed by CapturePaymentIntent and CancelPaymentIntent.
captures (list) --
The captures created against this intent (populated on Get). Empty until first capture.
(dict) --
A capture of previously-authorized funds against a payment intent. Created by CapturePaymentIntent (FUTURE) or at Authorize (INSTANT).
captureId (string) --
The AgentCore identifier for this capture.
captureAmount (dict) --
The amount captured.
value (string) --
The numeric value of the amount.
currency (string) --
The currency code for this amount.
status (string) --
The status of this capture.
partnerCaptureReference (string) --
The provider capture reference (Stripe the pi/charge, PayPal/Amazon Pay capture id).
createdAt (datetime) --
The timestamp when this capture was created.
updatedAt (datetime) --
The timestamp when this capture was last updated.
createdAt (datetime) --
The timestamp when this payment intent was created.
updatedAt (datetime) --
The timestamp when this payment intent was last updated.
Create an opaque URL for collecting buyer approval of the current PaymentIntent version.
Authentication: IAM or OAuth
See also: AWS API Documentation
Request Syntax
client.create_buyer_approval_url(
userId='string',
agentName='string',
paymentManagerArn='string',
paymentIntentId='string',
parentOrigin='string',
clientToken='string'
)
string
The user ID associated with this payment intent.
string
The agent name associated with this request, used for observability.
string
[REQUIRED]
The ARN of the payment manager that owns this payment intent.
string
[REQUIRED]
The ID of the payment intent whose current version requires approval.
string
[REQUIRED]
The exact origin that is permitted to embed the Buyer Approval widget.
string
Idempotency token used to replay the original created URL response.
This field is autopopulated if not provided.
dict
Response Syntax
{
'paymentIntentId': 'string',
'paymentIntentVersion': 123,
'buyerApprovalUrl': 'string',
'expiresAt': datetime(2015, 1, 1)
}
Response Structure
(dict) --
Response structure containing the opaque Buyer Approval URL.
paymentIntentId (string) --
The ID of the payment intent the buyer approval URL is for.
paymentIntentVersion (integer) --
The version of the payment intent that the buyer approves through this URL.
buyerApprovalUrl (string) --
The URL that opens buyer approval for the payment intent.
expiresAt (datetime) --
Deadline for the first redemption of this URL.
{'paymentTokenRequest': {'payPalTokenRequest': {}, 'stripeTokenRequest': {}}}
Response {'paymentTokenResponse': {'payPalTokenResponse': {'bearerToken': 'string',
'environment': 'LIVE | '
'SANDBOX',
'scope': 'string',
'tokenExpiry': 'long'},
'stripeTokenResponse': {'bearerToken': 'string',
'publishableKey': 'string'}}}
Generates authentication tokens for payment providers that use vendor-specific authentication mechanisms.
See also: AWS API Documentation
Request Syntax
client.get_resource_payment_token(
workloadIdentityToken='string',
resourceCredentialProviderName='string',
paymentTokenRequest={
'coinbaseCdpTokenRequest': {
'requestMethod': 'GET'|'POST'|'PUT'|'DELETE'|'PATCH',
'requestHost': 'string',
'requestPath': 'string',
'includeWalletAuthToken': True|False,
'requestBody': 'string'
},
'stripePrivyTokenRequest': {
'requestHost': 'string',
'requestPath': 'string',
'requestBody': 'string',
'includeAuthorizationSignature': True|False
},
'stripeTokenRequest': {}
,
'payPalTokenRequest': {}
}
)
string
[REQUIRED]
Workload access token for authorization.
string
[REQUIRED]
Name of the payment credential provider to use.
dict
[REQUIRED]
Vendor-specific token request input. Contains all request parameters in a type-safe, vendor-specific structure.
coinbaseCdpTokenRequest (dict) --
The Coinbase CDP token request.
requestMethod (string) -- [REQUIRED]
The HTTP method for the payment API request.
requestHost (string) --
The host for the payment API request. Defaults to "api.cdp.coinbase.com".
requestPath (string) -- [REQUIRED]
The path of the payment API request.
includeWalletAuthToken (boolean) --
Set to true for wallet write operations (requires walletSecret configured).
requestBody (string) --
Request body JSON — used to generate wallet auth JWT.
stripePrivyTokenRequest (dict) --
The Stripe Privy token request.
requestHost (string) --
The host for the Privy API request. Defaults to "api.privy.io".
requestPath (string) -- [REQUIRED]
The path of the Stripe Privy API request.
requestBody (string) -- [REQUIRED]
Request body JSON for the Privy API call.
includeAuthorizationSignature (boolean) --
Set to true to generate privy-authorization-signature.
stripeTokenRequest (dict) --
Request for the Stripe restricted key that the credential provider stores.
payPalTokenRequest (dict) --
Request for a short-lived PayPal OAuth2 access token.
dict
Response Syntax
{
'paymentTokenResponse': {
'coinbaseCdpTokenResponse': {
'bearerToken': 'string',
'walletAuthToken': 'string'
},
'stripePrivyTokenResponse': {
'authorizationSignature': 'string',
'requestExpiry': 123,
'appId': 'string',
'basicAuthToken': 'string'
},
'stripeTokenResponse': {
'bearerToken': 'string',
'publishableKey': 'string'
},
'payPalTokenResponse': {
'bearerToken': 'string',
'tokenExpiry': 123,
'scope': 'string',
'environment': 'LIVE'|'SANDBOX'
}
}
}
Response Structure
(dict) --
paymentTokenResponse (dict) --
Vendor-specific token response output. Contains all response data in a type-safe, vendor-specific structure.
coinbaseCdpTokenResponse (dict) --
The Coinbase CDP token response.
bearerToken (string) --
Bearer Token for Authorization header.
walletAuthToken (string) --
Wallet Auth Token for X-Wallet-Auth header.
stripePrivyTokenResponse (dict) --
The Stripe Privy token response.
authorizationSignature (string) --
Base64-encoded ECDSA P-256 authorization signature (only present when includeAuthorizationSignature is true).
requestExpiry (integer) --
Unix timestamp in milliseconds when the authorization signature expires.
appId (string) --
The Privy app ID for the privy-app-id header.
basicAuthToken (string) --
Base64-encoded Basic Auth token (appId:appSecret) for the Authorization header.
stripeTokenResponse (dict) --
The Stripe restricted key that the credential provider stores.
bearerToken (string) --
Bearer credential for the Authorization header. A merchant-created restricted key (rk_live_* or rk_test_*) for a MANUAL connector. The caller applies it as Authorization: Bearer <bearerToken>.
publishableKey (string) --
Stripe publishable key (pk_live_* or pk_test_*). Present only when one is stored on the provider. Public by design, so the caller returns it to the browser for the Payment Element.
payPalTokenResponse (dict) --
The short-lived PayPal OAuth2 access token and the environment it is valid in.
bearerToken (string) --
Bearer credential for the Authorization header. A short-lived OAuth2 access token minted from the merchant's clientId/clientSecret. The caller applies it as Authorization: Bearer <bearerToken>.
tokenExpiry (integer) --
Unix timestamp (seconds) when the bearer token expires.
scope (string) --
Space-delimited OAuth2 scopes granted to the token, when PayPal returns them.
environment (string) --
The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.