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
Checkout.configure(configuration);
Example
Checkout.configure({ session: { id: '<your_session_id>' } });
Arguments
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 address of the payer to whom the order is being billed.
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 phone number of the person to whom the order is being billed.
Information associated with the customer's source of transaction.
The telephone number captured by ANI (Automatic Number Identification) when the customer calls to place the order.
The 2 digit ANI information identifier provided by the telephone company to indicate the call type, for example, cellular (61-63), toll free (24,25), etc.
The email address of the customer.
If, when integrating with the gateway, you are using a solution (e.g. a shopping cart or e-commerce solution) provided, supported or certified by your payment service provider, enter the solution ID issued by your payment service provider here.
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.A language identifier or IETF language tag to control the language of the payment page displayed to the payer.
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.
Identifier of the payment session containing values for any of the request fields to be used in this operation.
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.
Information about this transaction.
Additional information to be passed to acquirer.
Additional information requested by the acquirer which cannot be passed using other available data fields.
Indicates the frequency of the transaction offered to the payer.
INSTALLMENT
Indicates an installment transaction where the payer authorizes you to deduct multiple payments over an agreed period of time for a single purchase.RECURRING
Indicates a recurring transaction where the payer authorizes you to automatically debit their accounts for bill or invoice payments.SINGLE
Indicates a single transaction where a single payment is used to complete the order.Your note about this transaction.
An optional identifier for this transaction.
The person who initiated this transaction.
Return Value
None