Add Card

Here you can add an external card

Field NameLenTypeReqVerComments
methodN/AAlp-NumYes1.1addCard
fromEmailN/AAlp-NumYes1.1The email associated with the account to wich the card will be added
cardNameN/AAlpYes1.1The name on the card
cardType1NumYes1.11 = Card type 1
2 = Card type 2
cardNumberN/ANumYes1.1The Card Number
cardExpiration7DateYes1.1Card Expiration Date (mm-yyyy)
currency3AlpYes1.1The currency of the Card (eg USD)
typeN/ANumYes1.11 = Primary
2 = Secondary
phone10NumYes1.1Contact Number with country code (eg 19872547805)
idNumberN/AAlp-NumYes1.1Passport Number or Government Issued ID (eg H144556)
idExpiration10DateYes1.1Passport or Government Issued ID expiration Date (eg 2020-12-31)
addressIdN/AAlpYes1.1The ID of the address within the account wich is used as billing address for this card
keyN/AAlp-NumYes1.1MD5(sharedSecret + cardName + cardType + cardNumber + cardExpiration + cardVerificationNumber + currency + type + phone + idNumber + idExpiration + addressId )

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 transaction ID if successfully, otherwise not specified

Request Sample:

https://secure.paxum.com/payment/api/paymentAPI.php
POST
method=addCard&fromEmail=payee%40domain.com&nameOnCreditCard=name+on+the+card&cardType=1&creditCardNumber=0123456789012345&expirationDate=10-2012&currency=USD&type=1&phone=0123456789&passportNumber=123456&passportExpirationDate=2013-02-15&addressId=123456&key=9061edab0201c874a77d13ecbfc60f2b

Response Sample

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

Working Sample(s):

addCard.php