🧬3. TempCard

This is a service that can be used for card storage on the client side. You can store the card as a token in Paywall during the payment process from your browser. You can then send requests from your

Card storage can be performed for both E-commerce and Insurance use cases. 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. You can obtain this value as described on the Authorization page.

PaymentAPI Address

Parameter
Type
Compulsory
Description

token

string

Yes

This is the temporary token obtained from the Authorization service for client-side operations.

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

Parameter
Scope
Type
Compulsory
Description

Normal

int

Yes

Specifies the scope of the card.

  1. ECom

  2. Insurance

Normal

string

Yes

Cardholder name

ECommerce

string

Yes/No

Card number

ECommerce

string

Yes/No

Card CVV information

ECommerce

string

Yes/No

Card expiration month

ECommerce

string

Yes/No

Card expiration year

Insurance

string

Yes/No

First 8 digits of the card

Insurance

string

Yes/No

Last 4 digits of the card

Insurance

string

Yes/No

Cardholder identity information

Normal

int

Yes

How long will the token be valid?

A value can be defined between 0 and 30 minutes.

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

Servisten dönen parametreler şu şekildedir:

Parameter
Type
Description

ErrorCode

int

Hata kodu. İşlem başarılı ise '0' değerini döner.

Result

bool

True ya da false değeri döner. İşlem başarılı iste 'true' değerini döner.

Message

string

İşlem hatalıysa, bu hataya dair belirtilen mesajdır, locale parametresine göre dil desteği sunar.

Body

object

İşlem detay bilgileri

Last updated