Make payment using Debit/Credit Card

makePayment()

This API call is used to make payments using Credit/Debit Cards info stored in the Sippy SoftSwitch. For more information about cards see Debit/Credit Cards manipulations .


Note! Either i_account or i_customer is to be supplied.


        Trusted mode requires i_wholesaler parameter.


Parameters:

    • i_account - i_account of account that makes the payment. Integer. Required.
    • i_customer - i_customer of customer that makes the payment. Integer. Required.
    • amount - payment amount. Double. Required.
    • currency - payment currency in ISO 4217 format (USD, EUR, etc.). String. Required.
    • payer_ip_address - IP address of the payer. String. Required.
    • i_debit_credit_card - i_debit_credit_card of card to make the payment. If not specified than primary Debit/Credit card will be used. Integer. Optional.

Returns:

  • result - OK / FAILED / PENDING (Approval on Payment Processor's side is required). String
  • i_payment - reference to transaction details. Integer.
  • XMLRPC fault in case of other error.

makePaymentByCard()

This API call is used to make payments using Credit/Debit Card info supplied in the request.

Note! Either i_account or i_customer is to be supplied.


        Trusted mode requires i_wholesaler parameter.


Parameters:

    • i_account - i_account of account that makes the payment. Integer. Required.
    • i_customer - i_customer of customer that makes the payment. Integer. Required.
    • amount - payment amount. Double. Required.
    • currency - payment currency in ISO 4217 format (USD, GBP, EUR, etc.). String. Required.
    • payer_ip_address - IP address of the payer. String. Required.
    • i_card_type - card type. Integer. Required. Supported card types:
      • 1 - Visa
      • 2 - American Express
      • 3 - MasterCard
      • 4 - Discover
      • 5 - JCB
      • 6 - Diner's Club
  • number - card number. String. Required.
  • exp_mm - expiration month (1 - 12). Integer. Required.
  • exp_yy - expiration year in 4-digits format (e.g. 2015). Integer. Required.
  • cvv - CVV/CVC code. String. Optional.
  • holder - card holder. String. Required.
  • street_addr1 - street address (line #1). String. Required.
  • street_addr2 - street address (line #2). String. Optional.
  • state - Province/State. String. Required.
  • postal_code - ZIP/Postal Code. String. Required.
  • city - city. String. Required.
  • country - country in 2-letters. ISO_3166-2 format (US, GB, etc). String. Required.
  • phone - phone number. String. Required.

Returns:

  • result - OK / FAILED / PENDING (Approval on Payment Processor's side is required). String
  • i_payment - reference to transaction details. Integer.
  • XMLRPC fault in case of other error.