1. TempCard

Client-Side tarafta kart saklama yapmak için kullanılabilecek servistir. Tarayıcınızdan ödeme anında kartı token olarak Paywall'a saklayabilir. Saklı kart token ile sunucudan istek gönderebilirsiniz

Card storage can be performed within the scope of both E-Commerce and Insurance. You can define the scope using the Scope parameter in the request.

TempCard

POST {{Base Adres}}/api/paywall/tempcard

Important: To use the TempCard service, you must include the 'token' parameter in the 'Header' field. You can obtain this information as described on the Authorization page.

PaymentAPI Address

Parameter
Type
Compulsory
Description

token

string

Yes

The temporary token information obtained from the Authorization service for Client-Side operations.

The parameters that need to be sent to the service are as follows:

Parameter
Scope
Type
Compulsory
Description
CardType

Normal

int

Yes

Specifies the scope of the card:

  1. ECom

  2. Insurance

CardOwnerName

Normal

string

Yes

Cardholder's name

CardNumber

ECommerce

string

Yes/No

Card number

CardCvv

ECommerce

string

Yes/No

Card CVV information

CardExpiryMonth

ECommerce

string

Yes/No

Card expiration month

CardExpiryYear

ECommerce

string

Yes/No

Card expiration year

CardNoFirst

Insurance

string

Yes/No

First 8 digits of the card

CardNoLast

Insurance

string

Yes/No

Last 4 digits of the card

IdentityNumber

Insurance

string

Yes/No

Cardholder's identification information

ExpiryMin

Normal

int

Yes

How long will the token be valid?

A value between 0 and 30 minutes can be defined.

The sample JSON and code snippets to be sent to the service are as follows:

{
    "CardType": 1, // 1: ECom | 2: Insurance
    "CardOwnerName": "Enes Selman Tütüncü",
    "CardNumber": "5528790000000008", // Scope: ECom
    "CardCvv": "123", // Scope: ECom
    "CardExpiryMonth": "12", // Scope: ECom
    "CardExpiryYear": "30", // Scope: ECom
    // "CardNoFirst": "48249048", // Scope: Insurance
    // "CardNoLast": "8012", // Scope: Insurance
    // "IdentityNumber": "21234567890" // Scope: Insurance
    "ExpiryMin": 30
}

The parameters returned from the service are as follows:

Parameter
Type
Description

ErrorCode

int

Error code. Returns '0' if the operation is successful.

Result

bool

Returns either a true or false value. If the operation is successful, it returns true.

Message

string

If the operation fails, this is the error message describing the issue. It provides language support based on the locale parameter.

Body

object

Transaction detail information.

{
    "ErrorCodeType": 1,
    "ErrorMessage": null,
    "ErrorCode": 0,
    "Result": true,
    "Message": "",
    "Body": {
        "TempCardId": 2211290,
        "CardToken": "701b5df5-a50a-461d-9763-6107bea48184",
        "ExpiryDateTime": "2024-07-11T23:09:29.4294449+03:00"
    }
}

Last updated