Skip to main content

Schemas

returnUrls​

ParameterTypeDescriptionConstraintsRequired
successString(1...2000)Return URL to use when the transaction succeeds.✅
cancelledString(1...2000)Return URL to use when the transaction is cancelled.✅
expiredString(1...2000)Return URL to use when the transaction is expired.✅
failedString(1...2000)Return URL to use when the transaction is failed.✅

consumer​

ParameterTypeDescriptionConstraintsRequired
namename ObjectCustomer name.
addressaddress ObjectCustomer address.✅
emailStringEmail provided by customer.✅
businessNameString(1...35)Business name.
phoneStringCustomer phone number.
genderString(1...2000)Gender of the customer.The possible values are: m, f , or null.
dateOfBirthStringDate of birth of the customer.

name​

ParameterTypeDescriptionConstraintsRequired
firstNameString(1...35)Customer first name.✅
lastNameString(1...35)Customer last name.✅
middleNameString(1...35)Customer middle name.

address​

ParameterTypeDescriptionConstraintsRequired
streetString(1...100)Street.
houseNumberString(1...35)House and number.
postalCodeString(1...35)Postal code.
cityString(1...35)City.
countryCodeStringCountry code.ISO 3166-1 country code.✅
stateString(1...40)State.
additionalDataString(1...35)Additional address information.

details​

ParameterTypeDescriptionConstraintsRequired
merchantCountryStringThe country code where the transaction is processed.ISO 3166-1 alpha-2 country code.
gatewayIdStringThe gateway's identifier, which is issued by Google.
environmentStringThe environment defines the payment methods to use. TEST is used where dummy payment methods are suitable for testing. PRODUCTION is used to return chargeable payment methods when a valid Google merchant ID is specified and configured for the domain.The possible values are: TEST, PRODUCTION.
merchantIdStringThe Google merchant identifier.
merchantNameStringThe merchant name encoded as UTF-8. Merchant name is rendered in the payment sheet. In TEST environment, or if a merchant isn't recognized, a “Pay Unverified Merchant” message is displayed in the payment sheet.
merchantKeyString(36)The unique identifier for your integration. Should be used as gateway merchant id.
allowedCardNetworksStringThe supported card networks for Payment via Google Pay.The possible values are: AMEX, DISCOVER, INTERAC, JCB, MASTERCARD, VISA.
serverUrlStringThe URL to the Mobile Pay Server.

action​

ParameterTypeDescriptionConstraintsRequired
redirectredirect ObjectNext action to be performed by merchant (or consumer) to complete the payment.

redirect​

ParameterTypeDescriptionConstraintsRequired
urlStringURL where consumer should be redirected to by the merchant to perform the payment.

refund​

ParameterTypeDescriptionConstraintsRequired
refundedAmountInt(0...99999999)Amount in the smallest currency subunit, as for example eurocents, that has already been refunded.✅
refundedPendingAmountInt(1...99999999)Amount in the smallest currency subunit, as for example eurocents, that has been requested to be refunded.✅