Skip to main content

Checkout API

Ask AI

Endpoint contract

Create a hosted checkout session that can expose cards, wallets, bank methods, QR, and crypto on one GLODIPAY checkout page.

POST /v2/checkoutapplication/jsonSignature required

Environments: Sandbox: https://payment-sandbox.gpayprocessing.com. Production base URL comes from the API Keys page in the Merchant Dashboard.

Signature rules

  • Remove signature from the payload before signing.
  • Sort top-level keys in natural ascending order.
  • Trim string values recursively and cast leaf numbers the same way as the spec examples expect.
  • Serialize to JSON and sign with md5WithRSAEncryption using your merchant private key.
  • Base64-encode the binary signature and send it as the signature field.

The console uses the local signing proxy for this flow whenever you provide a private key.

Request parameters

FieldTypeRequiredDescription
merchantIdString(1,50)MMerchant ID.
orderRefString(1,250)MUnique transaction reference per merchant.
amountFloatMInvoice amount. Minimum 1, up to 2 decimal places.
currencyString(3)MISO 4217 currency code. The v2 checkout spec currently documents USD.
paymentMethodStringMPayment method to display. Supports ALL, APM, card, googlepay, applepay, paypal, ibanking_push, local_bank_transfer, wire_transfer, wallet, alipay, wechat, skrill, crypto.
cancelUrlString(1,300)MHTTPS redirect URL on cancellation.
callbackUrlString(1,300)MHTTPS redirect URL after success.
notificationUrlString(1,300)MHTTPS webhook endpoint.
errorUrlString(1,300)MHTTPS redirect URL on error.
orderDescriptionString(max:3000)MShort description shown on the checkout screen.
metadataJSONOKey-value pairs returned in IPN and query responses.
transactionDocumentsJSONOSupporting transaction documents.
paymentFilterJSONOArray of payment method types to exclude.
paymentSorterJSONOOrdered array to control display order. Valid values: card, paypal, ibanking_push, local_bank_transfer, wire_transfer, wallet, skrill, alipay, wechat, googlepay, applepay, crypto, apm.
feeBySellerNumber(0-100)OPercentage of processing fee paid by the merchant.
billingFirstNameString(max:255)OBilling first name.
billingLastNameString(max:255)OBilling last name.
billingStreet1String(max:255)OBilling address line 1.
billingStreet2String(max:255)OBilling address line 2.
billingCityString(max:255)OBilling city.
billingEmailString(max:255)OBuyer email address.
billingStateString(2,255)OBilling state or province.
billingCountryStringOISO 3166-1 alpha-2 country code.
billingPostalCodeString(max:25)OPostal or ZIP code.
billingPhoneCountryCodeString(max:10)OPhone country code.
billingPhoneNumberString(max:20)OPhone number.
brandNameString(1,255)OOverride the brand name on the hosted checkout screen.
colorModeString(1,255)OUp to 3 colors separated by ---.
logoSourceString(1,255)OOverride the logo on the hosted checkout screen.
customerIpStringOIP address of the customer.
websiteUrlString(max:300)OMerchant website URL.
connectionModeStringODIRECT_POST or API. See Connection Modes below.
expiresAtStringOISO 8601 session expiry. Default is 24 hours.
signatureString(max:750)MRSA-MD5 signature.

Connection modes

ValueDescription
DIRECT_POSTBrowser is redirected to the hosted checkout page immediately.
APIReturns a paymentLink URL in the JSON response.

Responses and flow

API: returns JSON with status, transactionId, paymentLink, and message.

DIRECT_POST: redirects the buyer directly to the hosted checkout page and does not return JSON to your server.

After payment, GLODIPAY redirects the browser to callbackUrl with ?payload=base64-json. Your notificationUrl also receives a JSON webhook when the transaction reaches a terminal state.

Your webhook handler should acknowledge receipt quickly with:

{
 "returnCode": "100",
 "description": "Received"
}

Source

This page is derived from Checkout API.

Bookmarks

No bookmarks yet.
Hover over a heading and click to save a section.