Card Payment and receipt Copy section link Copied!

Card payment Copy section link Copied!

AgoraPay supports the following card payment methods:

  • Mastercard
  • Visa
  • CB

The payment methods have a dedicated user experience in the web interaction flow:

Payment characteristics Copy section link Copied!

Payment method

CB, Visa, Mastercard

Countries

World

Payment execution

Marketplace initiative

Currency

EUR

Funds collection

2 to 3 working days

Payment dispute

Yes

Refunds

Yes

Partial refunds

Yes

Partial captures

Yes

Recurring payments

Yes

Card receipt - Payment ticket Copy section link Copied!

The payment ticket is available in two different formats:

  • Raw data available in a JSON
  • Formatted data available in a PDF
cURL
Copy
Copied
1
2
3
curl -X 'GET' \\
'<https://api.live.agorapay.com/api/v1/payin/ticket?transactionId=2097421&type=C&format=J>' \\
-H 'accept: application/json'
Copy
Copied
Request Url
Copy
Copied
1
https://api.live.agorapay.com/api/v1/payin/ticket?transactionId=2097421&type=C&format=JSON&message=Trans34725470
Copy
Copied

Ticket parameters Copy section link Copied!

Parameter Name
Required
Type
Description
transactionId
check
string
Id of the transaction. Must be a card transaction.
format
check
string
Ticket format : J JSON, P : PDF
type
check
string
Ticket type : C client, M : merchant
message
string
Message to set in the bottom of the ticket.
cURL
Copy
Copied
1
2
3
4
5
6
7
curl --get 'https://API_URL/mkp/v1/payin/ticket'  
-H 'Authorization: Bearer <your_access_token>'
-H 'id_token: <your_id_token>'
-d 'transactionId=165231523612'
-d 'format=P'
-d 'message=Thank%20you%20for%20your%20purchase'
-d 'type=C'
Copy
Copied

Retrieving the result Copy section link Copied!

If your request is successful, you will receive a getTicket response, containing the following information:

Parameter Name
Type
Description
resultCode
string
resultCodeMessage
string
transactionId
string
name
string
brand
string
maskedPan
string

Hidden card number

transactionStatus
string
operationDate
string
operationTime
string

Operation time in HH:MM:SS format

safe
string

Y if 3DS is verified

type
string

1: DEBIT, 2: CREDIT

authNumber
string
transNumber
string

Transaction number in PSP

amount
object

Purchase amount

mode
string

PROD or TEST

fileContent
string

PDF file content base64 encoded, if format is P

contract
string

Payment partner contract number

If the requested format is PDF, only the resultCode, transactionId and file content will be present in the result.

Example Copy section link Copied!

Here is the JSON payload for a successful response example:

JSON
Copy
Copied
{
"resultCode": "0",
"transactionId": "2851621",
"name": "marketPlace A",
"brand": "CB",
"maskedPan": "111122*************44",
"transactionStatus": "10",
"operationDate": "20211118",
"operationTime": "14:31:00",
"safe": "N",
"type": "DEBIT",
"authNumber": "1762763",
"transNumber": "35430234",
"contract": "1111119",
"amount": {
"value": "1103.28",
"currency": "EUR"
},
"mode": "TEST"
}
Copy
Copied