POST Transaction Payment
With Teqpay API, many different payment methods are integrated into one platform. Through Teqpay it is possible to perform payments via vPOS, e-wallets, carrier billing and bank wire transfer.
Service address:/payment
Attention! For vPOS transactions, all payments will be performed by 3D Secure.
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". |
paymentMethodId
|
string | Payment Method ID.
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. |
cardData
|
class | Card information. It should be sent only in payments to be made with Virtual Pos. It is not mandatory to send it in other payment types. |
moneyTransferData
|
class | It is only used for payments to be made with ParaTransfer (PayPorter). It is not mandatory to send in other payment types. You can access "Bank Information" by using the service. |
mobilePaymentData
|
class | Class Used for Mobile Payments |
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. |
CardData
Parameter Name | Parametrer Type | Explanation |
---|---|---|
cardNo
|
string | Card Number. |
cardHolderName
|
string | Card owner |
expDate
|
string | Expiry Date (Month/Year) |
cvv
|
string | Security Number |
installment
|
integer | Installment information |
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. |
MoneyTransferData
Parameter Name | Parametrer Type | Explanation |
---|---|---|
ibanNo
|
string | Iban number of the bank to which the money transfer will be made. |
moneyTransferCode
|
string | Description Code to be used in the money transfer transaction. |
MoneyPaymentData
Parameter Name | Parametrer Type | Explanation |
---|---|---|
phoneNumber
|
string | Phone Number to Pay |
Request Sample
{ "customerName": "Teqpay User", "customerIpAddress": "10.20.30.40", "customerCitizenNo": "12345678900", "customerEmail": "test@teqpay.com", "customerPhone": "1234567890", "price": 1.00, "currency": "TRY", "conversationId": "147852398", "callbackUrl": "https://merchant-test.teqpay.com/payment-callback", "language": "TR", "paymentMethodId": "1", "products": [ { "merchantItemId": "1", "itemType": "Sanal", "itemCategory": "Oyun Pini", "itemName": "PubG", "itemQuantity": 1, "itemPrice": 1.00 } ], "billing": { "billingName": "Teqpay User", "billingCity": "İstanbul", "billingCountry": "Türkiye", "billingAddress": "Bayrampaşa" }, "shipping": { "shippingContactName": "Teqpay User", "shippingCity": "İstanbul", "shippingCountry": "Türkiye", "shippingAddress": "Bayrampaşa" }, "cardData": { "cardNo": "5269111122223332", "cardHolderName": "Test User", "expDate": "12/22", "cvv": "000", "installment": 1, "isPreAuth": "false", "paymentSecurity": 1 }, "moneyTransferData": { "ibanNo": "", "moneyTransferCode": """ }, "mobilePaymentData": [ { "phoneNumber": "" } ], }
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 |
---|---|---|
OrderId | integer | Unique id of the payment transaction This value is set automatically by Teqpay services. |
ConversationId | string | The conversationId information sent by the merchant when initiating the payment request. Must be unique value. |
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", "OrderId": "15795263", "Price": 1.00, "PaymentUrl": "https://payment-test.teqpay.com/tr/payment-methods-MnJNdGxEZE9qUzhLMVlaY0NxbFNwWlluTFM1U2I0bUVyWk9jektPSU1HST0=", "TransactionDate": "2021-09-06 10:06:27" } }
Attention ! For payments made by Api payment method, if the payment is successful, the following values will be sent by Teqpay to the address you specified in the CallbackUrl parameter as Post.
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" }