Creates a request to add funds through a credit card.
3 steps to adding funds:
Step 1: Make your application call namecheap.users.createaddfundsrequest command (as shown in the example request given below).
Step 2: If your API call is executed successfully, you will see an XML response with Tokenid, ReturnURL and RedirectURL (as shown in the example response given below).
A Tokenid is a unique alphanumeric value. The Tokenid can be used to find out if funds were added successfully or if there was an error adding funds. The RedirectURL should be used to submit credit card details.
Step 3: Make your application to programmatically redirect customer to the RedirectURL so that the customer can submit credit card details.
Once payment is processed, you will be automatically redirected to the URL you've specified in the createaddfundsrequest call.
Global parameters are not shown here for clarity, but should be present in all requests
|Name ||Type ||MaxLength ||Required? ||Default ||Description |
|Username ||String ||20 ||Yes || ||Username to add funds to |
|PaymentType ||String ||30 ||Yes || ||Allowed payment value: Creditcard |
|Amount ||Number ||10 ||Yes || ||Amount to add |
|ReturnUrl ||String ||300 ||Yes || ||A valid URL to which the user should be redirected once payment is complete |
<?xml version="1.0" encoding="utf-8"?>
Specifies the error codes that might be returned from this method
|Number ||Description |
|2030343 ||Parameter PaymentType is unsupported |
|2019103 ||Username not found |
|2015312 ||Minimum amount should be added |
|2013312 ||Amount is out of range |
|2029341 ||Credit card not approved |
|5050900 ||Unknown Exceptions |