Developers / API / Set Primary Card
Set Primary Card

Set Primary Card

Here you can set primary cards

Field Name Len Type Req Ver Comments
method N/A Alp-Num Yes 1.1 setPrimaryCard
fromEmail N/A Alp-Num Yes 1.1 The email associated with your paxum account
cardId N/A Num Yes 1.1 The Id associated with the card that you want to set as primary
key N/A Alp-Num Yes 1.1 MD5(sharedSecret + cardId)

This request is responded by a message with the following content:

Field Name Len Type Mdt Ver Comments
ResponseCode N/A Alp-Num Yes 1.1 The response code; 00 = Success;
ResponseDescription N/A Alp-Num Yes 1.1 Human readable response
Fee N/A Real Yes 1.1 Fee for the current transaction
TransactionId N/A Num Yes 1.1 The address ID if successfully, otherwise not specified

Request Sample:

https://www.paxum.com/payment/api/paymentAPI.php

POST

method=setPrimaryCard&fromEmail=payee%40domain.com&cardId=2345789&key=7d4420a8b447cb9c3cb1c29bea7ba707

Response Sample

<?xml version="1.0"?>
<Response>
	<Method>setPrimaryCard</Method>
	<ResponseCode>00</ResponseCode>
	<ResponseDescription>Approved or Completed Successfully</ResponseDescription >
	<Fee>0.00</Fee>
	<TransactionId>23646236</TransactionId>
</Response>

Working Sample(s):

setPrimaryCard.php