Set Primary Card

Here you can set primary cards

Field NameLenTypeReqVerComments
methodN/AAlp-NumYes1.1setPrimaryCard
fromEmailN/AAlp-NumYes1.1The email associated with your account
cardIdN/ANumYes1.1The Id associated with the card that you want to set as primary
keyN/AAlp-NumYes1.1MD5(sharedSecret + cardId)

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

Field NameLenTypeMdtVerComments
ResponseCodeN/AAlp-NumYes1.1The response code; 00 = Success;
ResponseDescriptionN/AAlp-NumYes1.1Human readable response
FeeN/ARealYes1.1Fee for the current transaction
TransactionIdN/ANumYes1.1The address ID if successfully, otherwise not specified

Request Sample:

https://secure.paxum.com/payment/api/paymentAPI.php
POST
method=setPrimaryCard&fromEmail=payee%40domain.com&cardId=2345789&key=7d4420a8b447cb9c3cb1c29bea7ba707

Response Sample

<?xml version="1.0"?>
<Response>
    <Environment>PRODUCTION</Environment>
    <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