Tami co-payment page is a co-payment page provided for merchants who have a website to list products but do not have a payment page. The flow is as follows:
If you want to be integrated into our Common Payment product, where we offer Masterpass wallet service, in a prod environment, you should send an e-mail to TeknikDestek@tami.com.tr.
Merchant calls the tami/token service, receives the token information of the common payment page by feeding the amount, order id, callback url information. Token is generated one time, expiration time in the test is 15 minutes.
Parameter Name | (O)ptional/(M)andatory | Description |
---|---|---|
correlationId | M | correlation id |
PG-Auth-Token | M | merchantNumber:terminalNumber:hash |
TEST | |
---|---|
Endpoint | https://sandbox-paymentapi.tami.com.tr/hosted/create-one-time-hosted-token |
Test credentials | It was communicated under the heading “Test workplaces and User Information”. |
PROD | |
---|---|
Endpoint | https://paymentapi.tami.com.tr/hosted/create-one-time-hosted-token |
Field | Format | Length | (O)ptional (M)andatory (C)onditional | Description |
---|---|---|---|---|
Amount | Decimal | M | Amount of product for which payment is requested | |
OrderID | String | 50 | M | order number |
successCallbackUrl | String | 300 | M | Merchant page to be redirected to when the payment is completed successfully |
failCallbackUrl | String | 300 | M | The merchant page to be redirected when encountering an error in payment (currently this redirection is not done, it can be fed the same as the sucess url) |
mobilePhoneNumber | String | 100 | M | Customer phone number (mandatory for Masterpass verification) |
Data/key areas | String | 100 | O | Additional information requested |
Field | Format | Description |
---|---|---|
oneTimeToken | String | Token information required for page invocation |
tokenCreateTime | String | Token creation time, the token is valid for a certain period of time |
The token information in the url is filled in and the url is called as follows;
TEST: https://sandbox-portal.tami.com.tr/hostedPaymentPage?token=8wz8KLjrDI4B5aEKUGeGdOXSvk3mOCjf9Ns1vE5j7Ec=
PROD: https://portal.tami.com.tr/hostedPaymentPage?token=uljH69/LreFWmOEsfxFNkJTM0FFtiSmdk+diG6mLVRs=
The user pays by using Masterpass card information or by entering new card information in the payment field. If the payment result is successful, the user is redirected to the sucess call back url provided by the merchant. If an error is received, an error message is displayed on the screen, the user can try the transaction again if desired from the “try again” step. If the transaction result information is not received by the workplace, the transaction should be queried by calling the Query service at the end of the time out period. Query service information can be found in the previous sections of the document.
You can access the Sandbox test portal at https://sandbox-portal.tami.com.tr. When you log in to the test portal with the users provided below, the transactions made by the workplace connected to this user can be viewed. Transactions can be canceled/refunded.
User Phone Number | User Password | Sms / Email Otp | Workplace Number | Terminal Number | Secret Key |
---|---|---|---|---|---|
5346484700 | 147855 | 147852 | 77006950 | 84006953 | 0edad05a-7ea7-40f1-a80c-d600121ca51b |
5346484709 | 147851 | 147852 | 77006951 | 84006954 | c8581bb6-a4b2-4925-8c94-529fc651399e |
5346484803 | 147856 | 147852 | 77006952 | 84006955 | ff7d4895-0c32-4f48-86ab-fb9ecca9f3d7 |
5346484807 | 147850 | 147852 | 77006953 | 84006956 | 33124ff0-0b19-4cf9-b002-13a35eae865b |
5346484800 | 147851 | 147852 | 77006954 | 84006957 | 7daf9631-e136-4164-9ddb-dd1c02df851d |
5346484808 | 147854 | 147852 | 77006956 | 84006959 | fe6f3fff-0434-4932-a27d-bb3dac9de49d |