TR EN


Delete saved Card



This operation will delete the saved card by useing the TOKEN which is saved in the caller application database and generated by Payfull before.


Request parameters
merchant: required
merchant name which you created in your Payfull account.

type: required
Transaction type should be Set.

set_param: required
The name of parameter you like to save, so it should be Card.

card_op: required
There are two operations add/delete but in here it should bedelete.

user_email: required
The card holder must be a user in payfull, so this parameter is his username [email] inside payfull.

card_token: required
The card TOKEN

language: required
Response message language can be en / tr

client_ip: required
The client IP who uses the application which sends the request to the API.

hash: required
Generated hash code on the caller side

To generate the hash code please follow the steps below:
  • - Arrange the parameters alphabetically from A to Z
  • - Create a parameters string which has the length for each parameters with its value side by side
  • - Create the sha256 hash code from the parameters string and pass the merchant password as Shared secret key
  • - Add the hash code to the request parameters


Sample request


merchant: merchant name
type: Set
set_param: Card
card_op: delete
user_email: demo@gmail.com
card_token: A5NVH5VFTXE3XT3DUTVJMTD2BR2U7K5LBS2UNOXFTA5W2BII
language: tr
client_ip: 192.168.1.1
hash: 14339MjuG01015018



Sample Response


{
"status":1,
"ErrorMSG":"",
"ErrorCode":"00",
"data":"[]"
}



PHP Example