
Add Funds From Card
| Field Name | Len | Type | Req | Ver | Comments |
|---|---|---|---|---|---|
| method | N/A | Alp-Num | Yes | 1.1 | addFundsFromCard |
| fromEmail | N/A | Alp-Num | Yes | 1.1 | The email associated with the account from which the amount is deducted |
| fromCard | N/A | Num | Yes | 1.1 | The ID of the card from where the funds are taken |
| toAccountId | N/A | Num | Yes | 1.1 | The ID of the account where the funds are transfered to |
| amount | N/A | Real | Yes | 1.1 | Amount to be transfered |
| currency | 3 | Alp | Yes | 1.1 | The currency code (e.g USD) |
| cardVerificationNumber | 3 | Num | Yes | 1.1 | Card Verification Number (CVV) located on the back of the card |
| key | N/A | Alp-Num | Yes | 1.1 | MD5(sharedSecret + fromCard + toAccountId + amount + currency + cardVerificationNumber) |
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 transaction ID if successfully, otherwise not specified |
Request Sample:
https://secure.paxum.com/payment/api/paymentAPI.php
POST
method=addFundsFromCard&fromEmail=[email protected]&fromCard=123456&toAccountId=123456&amount=10¤cy=USD&key=361a4499be18f4f68c62e1ddd1ad928f
Response Sample
<?xml version="1.0"?>
<Response>
<Environment>PRODUCTION</Environment>
<Method>addFundsFromCard</Method>
<ResponseCode>00</ResponseCode>
<ResponseDescription>Approved or Completed Successfully</ResponseDescription >
<Fee>0.00</Fee>
<TransactionId>23646236</TransactionId>
</Response>
Response Sample 2
This Response is for a card enrolled in 3D secure (the response received from card processor)
<?xml version="1.0"?>
<Response>
<Environment>PRODUCTION</Environment>
<Method>addFundsFromCard</Method>
<ResponseCode>00</ResponseCode>
<ResponseDescription>Approved or Completed Successfully</ResponseDescription >
<HtmlCode>
<html>
<body>
.....
</body>
</html>
</HtmlCode>
</Response>
Working Sample(s):
addFundsFromCard.php