POSTTeqpay Common Payment
Together with the Teqpay Co-Payment Page, different forms of payment were collected under one roof.
Service address:/paywithcommonpage
Attention! The request must be in JSON format. While ApiKey and SecretKey values are added to headera, PaymentRequest values must be sent to body.
Request
Header
Parameter Name | Parametrer Type | Explanation |
---|---|---|
ApiKey
|
string | API Key info that is provided by Teqpay to the merchant
|
SecretKey
|
string | SecretKey info that is provided by Teqpay to the merchant.
|
Body Parameter
Parameter Name | Parametrer Type | Explanation |
---|---|---|
customerName
|
string | Customer name |
customerSurname
|
string | Customer surname |
customerIpAddress
|
string | Customer ip address |
customerCitizenNo
|
string | Customer citizen number |
customerEmail
|
string | Customer email address |
customerPhone
|
string | Customer phone number. Should be in 5555555555 format |
price
|
decimal | Amount of payment. A point is used for decimal separation. For Example 10.00 |
currency
|
string | Currency to use TRY: Turkish lira EUR: Euro |
conversationId
|
string | This is the parameter that you use in your request and also receive in responses. The most common form of use is the order number of the merchant. Must be unique value. |
callbackUrl
|
string | Spesifies the page that the customer will be re-directed after the performed payments. |
language
|
string | Values it can take "TR"-EN".The default language is "TR". |
isPreAuth
|
integer | It should be used for transactions that will be prepaid (True/False).
You can reach this process by using the Pre-Provision Close service. |
paymentMethodId
|
string | Payment Method ID. If Sent Blank, the OrderId is 0. If Empty is not sent, it returns the OrderId on its return.
Payment Method Id information Payment Method List by using the service. |
products
|
List<class> | Products Informations.The following Products Informations table describes the internal parameters. |
billing
|
class | Billing Informations.The following Billing Informations table describes the internal parameters. |
shipping
|
class | Shipping Informations.The following Shipping Informations table describes the internal parameters. |
installments
|
List<string> | It is the installment information specified by the member merchant only for the payment by credit card. NOTE: If the installment information is not sent, a single withdrawal will be made. |
Products
Parameter Name | Parametrer Type | Explanation |
---|---|---|
merchantItemId
|
string | It is the ID number of the product on merchant side. |
itemType
|
string | Item Type. |
itemCategory
|
string | Item Category |
itemName
|
string | Item Name |
itemQuantity
|
integer | Item Quantity Ürün adet bilgisi. |
itemPrice
|
decimal | Price value for each item. |
Billing
Parameter Name | Parametrer Type | Explanation |
---|---|---|
billingName
|
string | Contact name of billing address |
billingCity
|
string | City name of billing address |
billingCountry
|
string | Country name of billing address |
billingAddress
|
string | Address details of billing address |
Shipping
Parameter Name | Parametrer Type | Explanation |
---|---|---|
shippingContactName
|
string | Contact name of shipping adress. |
shippingCity
|
string | City name of shipping address. |
shippingCountry
|
string | Country name of shipping address. |
shippingAddress
|
string | Address details of shipping address. |
Installments
Parameter Name | Parametrer Type | Explanation |
---|---|---|
1
|
string | Installment |
2
|
string | Installment |
Request Sample
{ "customerName": "Teqpay User", "customerIpAddress": "10.20.30.40", "customerCitizenNo": "12345678900", "customerEmail": "test@teqpay.com", "customerPhone": "1234567890", "price": 1.00, "currency": "TRY", "details": "string", "conversationId": "147852398", "callbackUrl": "https://merchant-test.teqpay.com/payment-callback", "language": "TR", "isPreAuth": "false", "paymentMethodId": "", "products": [ { "merchantItemId": "1", "itemType": "Sanal", "itemCategory": "Oyun Pini", "itemName": "PubG", "itemQuantity": 1, "itemPrice": 1.00 } ], "billing": { "billingName": "Ali Öztürk", "billingCity": "İstanbul", "billingCountry": "Türkiye", "billingAddress": "Bayrampaşa" }, "shipping": { "shippingContactName": "Ali Öztürk", "shippingCity": "İstanbul", "shippingCountry": "Türkiye", "shippingAddress": "Bayrampaşa" }, "installments": [ "1", "2", "3" ] }
Response
Response Parameter
Parameter Name | Parametrer Type | Explanation |
---|---|---|
Result | boolen | Operation result |
ResultCode | integer | Teqpay result code of the payment transaction. |
ResultMessage | string | Description of ResultCode value. |
PaymentData | class | Returning information by Teqpay to complete the payment process. |
PaymentData
Parameter Name | Parametrer Type | Explanation |
---|---|---|
ConversationId | string | "The conversationId" information sent by the merchant when initiating the payment request. |
Price | decimal | Transaction amount |
PaymentUrl | string | Secure Payment Page where payment will be made. |
TransactionDate | string | The date the payment process started. (yyyy-mm-dd hh:mm:ss) |
Response Sample
{ "Result": true, "ResultCode": 10000, "ResultMessage": "Başarıyla tamamlandı.", "PaymentData": { "ConversationId": "147852398", "Price": 1.00, "PaymentUrl": "https://payment-test.teqpay.com/tr/payment-methods-MnJNdGxEZE9qUzhLMVlaY0NxbFNwWlluTFM1U2I0bUVyWk9jektPSU1HST0=", "TransactionDate": "2021-09-06 10:06:27" } }
Attention ! For the payments made with the common payment method, the following values will be sent by Teqpay as Post to the address you specified in the callbackUrl parameter automatically when the verification is performed.
Payment Result
Response Parameter
Parameter Name | Parametrer Type | Explanation |
---|---|---|
Result | boolen | Operation result |
ResultCode | integer | Teqpay result code of the payment transaction. |
ResultMessage | string | Description of ResultCode value. |
OrderId | integer | Unique id of the payment transaction This value is set automatically by Teqpay services. |
ConversationId | string | ConversationId information sent by the merchant while initiating the payment request. |
PaymentMethodId | int | Payment Method Id |
PaymentMethodName | string | Payment Method Name |
Price | decimal | Transaction amount |
Installment | string | Installment information |
Token | string | Token information of the payment transaction. It is used to verify that the payment response is received by Teqpay. Please check Token Check page to verify token information. |
PaymentMethodStatus | string (Json) | Contains detailed information on error codes related to the Payment Method and is delivered in JSON format. |
Extra | string (Json) | Extra field information. If the merchant uses its own virtual pos account, this field is returned. Virtual POS details are transmitted in its content. The value is sent in Json format. |
Response Sample
"Result": true, "ResultCode": 10000, "ResultMessage": "Başarıyla tamamlandı.", "OrderId": 1205, "ConversationId": "12345", "PaymentMethodId": 25, "PaymentMethodName": "PAPARA", "Price": 100.00, "Installment": "1", "Token": "7cb77378a0749f2a9b7e09ea62ffb13febf3759f", "PaymentMethodStatus": { "StatusCode": "00", "StatusMessage": "Başarılı" }, "Extra": { "BankName": "AKBANK", "BankCode": "0046", "ClientId": "123456789", "TerminalId": "123456789", "AuthCode": "12345", "HostRefNo": "123456789123456789", "BankOrderId": "1205" }