Welcome to Zuora Product Documentation

Explore our rich library of product information

Set up your client code for Fat Zebra one-time payment flows

Learn how to set up your client code to integrate Payment Pages 2.0 with additional parameters for authorization amount and invoice processing.

Follow the instructions in Integrate Payment Pages 2.0. When rendering the Payment Page form, specify the following additional parameters in the Z.render or Z.renderWithErrorHandler function to support the use case of authorization amount processing or invoice processing.

Parameter

Type

Description

doPayment

boolean

Default: false

true indicates that the Payment Page will create a payment method as well as process the one-time payment transaction.

If it is false or not specified, the Payment Page will only create a payment method.

storePaymentMethod

boolean

Default: true

true indicates that the payment method will be stored in Zuora and will be used in subsequent recurring payments.

false indicates that the payment method will not be stored in Zuora.

field_accountId

string

Zuora customer account ID, such as 8a90e5e48f2eade6018f2ed19133003a . The payment method will be created for this specified account.

For more information about this parameter, see Client parameters for Payment Pages 2.0.

authorizationAmount

number

Required for authorization amount processing

The amount of the one-time payment that will be sent to the gateway.

For more information about this parameter, see Client parameters for Payment Pages 2.0.

field_currency

string

Required for authorization amount processing

The currency of the one-time payment amount.

For more information about this parameter, see Client parameters for Payment Pages 2.0.

documents

array

Required for invoice processing

An array of invoices to be paid in this transaction, containing the following fields:

  • type - The value must be invoice .

  • ref - The value must be the invoice number, such as INV0000001 .

Here is an example for authorization amount processing.

var params = {
    doPayment:"true",
    storePaymentMethod:"true",
    field_accountId:"testc0f87596f2f301759c2944360000",
    authorizationAmount:"99",
    field_currency:"AUD"
};

Here is an example for invoice processing.

var params = {
    doPayment:"true",
    storePaymentMethod:"true",
    field_accountId:"testc0f87596f2f301759c2944360000",
    documents:"[{\"type\": \"invoice\", \"ref\": \"INV0000001\"}, {\"type\": \"invoice\", \"ref\": \"INV0000002\"}]"
};

Implement callback response

See Advanced Integration of Payment Pages 2.0 for more information.