configure()
The configure function is used to prepare the Checkout library for a payment. It must be called before either showEmbeddedPage() or showPaymentPage() to store payment details.
Usage Copied to clipboard
Checkout.configure(configuration);
Example Copied to clipboard
Checkout.configure({ session: { id: '<your_session_id>' } });
Arguments Copied to clipboard
The configuration object describes the merchant, customer, payment, and checkout appearance and behaviour. Fields in the object can contain literal values or a function that returns the value. Functions will be invoked before showing the payment interface.
Validation problems with the configuration object will be delivered to the error callback.
Information on the billing address including the contact details of the payer.
The city portion of the payers address.
The 3 letter ISO standard alpha country code of the payers address.
The post code or zip code of the payers address.
The state or province of the payers address.
The first line of the address.
The second line of the address (if provided).
The email address of the customer.
The unique identifier issued to you by your payment provider.
Information about the order associated with this transaction.
A unique identifier for this order to distinguish it from any other order you create.
The total amount for the order.
The currency of the transaction expressed as an ISO 4217 alpha code, e.g. USD.
Short textual description of the contents of the order.
The total item amount for the order.
If you provide both this value and line item data, then the order.itemAmount MUST equal the total item amount.
The total shipping and handling amount for the order.
The total tax amount for the order.
If you provide both this value and line item data, then the order.taxAmount MUST equal the total tax amount.
This data may be used to qualify for better interchange rates on corporate purchase card transactions.
Information that controls the payer's interaction on the payment page.
Indicates if you require the payer to provide their billing address on the payment page.
HIDE
Hides data fields from the payer.MANDATORY
Displays data fields and allows the payer to enter data into these fields.OPTIONAL
Displays data fields and allows the payer to opt out of data entry for these fields.READ_ONLY
Data is displayed but cannot be modified.Indicates if you require the payer to provide their email address on the payment page.
HIDE
Hides data fields from the payer.MANDATORY
Displays data fields and allows the payer to enter data into these fields.OPTIONAL
Displays data fields and allows the payer to opt out of data entry for these fields.READ_ONLY
Data is displayed but cannot be modified.This is the property ID for your shop site provided by Google Analytics in the form UA-XXXXX-Y.
Information that allows you to display your brand and business details on the payment page.
Information on your business address.
The first line of your business address for display to the payer on the payment page.
The second line of your business address for display to the payer on the payment page.
The third line of your business address for display to the payer on the payment page.
The fourth line of your business address for display to the payer on the payment page.
The email address of your business for display to the payer on the payment page.
The URL of your business logo for display to the payer on the payment page.
The name of your business for display to the payer on the payment page
The phone number of your business for display to the payer on the payment page.
Information on the shipping address including the contact details of the addressee.
The address to which the goods contained in this order are being shipped.
The city portion of the address.
The 3 letter ISO standard alpha country code of the address.
The post code or zip code of the address.
The state or province of the address.
The first line of the address.
The second line of the address (if provided).
The first name of the person to whom the order is being shipped.
The last name or surname of the person to whom the order is being shipped.
The shipping method code to indicate the time frame and the priority of the order.
ELECTRONIC
Electronic delivery.GROUND
Ground (4 or more days).OVERNIGHT
Overnight (next day).PRIORITY
Priority (2-3 days).SAME_DAY
Same day.The phone number of the person to whom the order is being shipped.
Return Value Copied to clipboard
None