Ce document a été mis à jour.
La traduction en Français (France) n’est pas encore terminée.
Anglais mis à jour : 8 juin 2023
Français (France) mis à jour : 7 févr. 2022

PaymentOptions

Use an object based on PaymentOptions to specify how to configure the payment sheet that appears to the customer.

PaymentOptions provides data for a PaymentRequest.

Properties

PropertyTypeDescriptionRequired

requestPayerEmail

boolean

Indicates whether to request an email address from the customer.

Yes

requestPayerPhone

boolean

Indicates whether to request a phone number from the customer.

Yes

requestShipping

boolean

Indicates whether to request a shipping address from the customer.

Yes

requestBillingAddress

boolean

Indicates whether to request the billing address from the customer.

Yes

requestPickupName

boolean

Indicates whether to request the pickup name from the customer.

No

requestPickupEmail

boolean

Indicates whether to request the pickup email from the customer.

No

requestPickupPhone

boolean

Indicates whether to request the pickup phone from the customer.

No

allowOfferCodes

boolean

Indicates whether to allow the customer to enter offer codes.

Yes

ctaType

PaymentCTAType

Indicates whether the customer wants to pay or continue shopping. The default is PAY.

No

[deprecated]

shippingType

PaymentShippingType

The fulfillment method for the order. The default is SHIPPING.

NOTE: This field is now deprecated. Please use fulfillmentType instead.

No

fulfillmentType

FulfillmentType

The fulfillment method for the order. The default is SHIPPING.

No

billingAddressMode

PaymentBillingAddressMode

The amount of information required for the billing address. The default is MIN.

No