Skip to main content

Server-to-Server Card API

Ask AI

Endpoint contract

Send card details directly to GLODIPAY from your own server. This flow requires PCI-compliant card collection on the merchant side.

POST /v2/card/apiapplication/jsonSignature required

Request parameters

FieldTypeRequiredDescription
merchantIdString(1,50)MMerchant ID.
orderRefString(1,250)MUnique transaction reference.
amountFloatMInvoice amount. Minimum 1.
currencyString(3)MISO 4217 currency code.
cancelUrlString(1,300)MHTTPS redirect URL on cancellation.
callbackUrlString(1,300)MHTTPS redirect URL after payment success.
notificationUrlString(1,300)MHTTPS webhook endpoint.
errorUrlString(1,300)MHTTPS redirect URL on payment error.
orderDescriptionString(max:3000)MShort order description.
metadataJSONOAttached key-value data.
transactionDocumentsJSONOSupporting documents.
paymentMethodStringMMust be card.
feeBySellerNumber(0-100)OSeller fee percentage.
billingFirstNameString(max:255)MBilling first name.
billingLastNameString(max:255)MBilling last name.
billingStreet1String(max:255)MBilling address line 1.
billingStreet2String(max:255)OBilling address line 2.
billingCityString(max:255)MBilling city.
billingEmailString(max:255)MBuyer email.
billingStateString(min:2,max:255)CRequired when billingCountry is US or CA.
billingCountryStringMISO 3166-1 alpha-2 country code.
billingPostalCodeString(max:25)MPostal / ZIP code.
billingPhoneCountryCodeString(max:10)OPhone country code.
billingPhoneNumberString(max:30)MPhone number.
cardNumberString(12,19)MCard number.
cardMonthStringMExpiry month, for example 12.
cardYearStringM2-digit expiry year, for example 30.
cardSecurityCodeString(3,4)MCVV / CVC.
customerIpStringMCustomer IP address.
websiteUrlString(max:300)OMerchant website URL.
expiresAtStringOISO 8601 session expiry.
browserDetailsJSONMBrowser fingerprint object.
signatureString(max:750)MRSA-MD5 signature.

Response cases

Response status values:

  • success — Payment completed immediately. data.transactionId is returned.
  • redirect — 3DS required. Redirect the buyer to data.url. After 3DS GLODIPAY sends the result via IPN and redirects the buyer to callbackUrl.
  • pending — Awaiting PSP confirmation. Final result will be sent via IPN.
  • error — Payment failed. HTTP 422 for validation errors (with errors array), HTTP 400/500 for processing errors.

Source

This page is derived from Server-to-Server Card API.

Bookmarks

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