validate_payment_information_m Sample Call and Response
This example shows a call to validate_payment_information_m, which determines the validity of a credit card by performing an authorization transaction, typically for zero or one unit of currency depending on the payment processor and card type. This example is based on the plsql_m_r73.yml definition file and assumes the client's payment processor supports credit card authorizations.
This example validates a newly supplied credit card that is not yet stored on the account, using clearly fake card data. It does not cover validating an existing stored payment method by billing group or bill sequence number, three-D-secure tracking fields, fraud filtering fields, or an alternate collections account group, all of which are optional.
Sample call
{
"rest_call": "validate_payment_information_m",
"output_format": "json",
"client_no": 66123,
"auth_key": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
"account_no": 5017732,
"alt_pay_method": 1,
"cc_number": "4111110000001111",
"cc_expire_mm": 9,
"cc_expire_yyyy": 2029,
"CVV": 123,
"currency_cd": "usd",
"bill_first_name": "Priya",
"bill_last_name": "Anand",
"bill_address1": "482 Harborview Drive",
"bill_city": "Tampa",
"bill_state_prov": "FL",
"bill_zip": "33602",
"bill_country": "US"
}
The rest_call and output_format fields are added by the REST layer and do not appear in the method's own argument list. account_no is the Aria-assigned account identifier and is used here in preference to its alternative, client_acct_id. seq_no, alt_pay_method, billing_group_no, and client_billing_group_id form a group of alternatives; this example uses alt_pay_method with a value of 1 (credit card) to validate a new card supplied directly on the call, rather than validating a card already stored against the account. cc_number, cc_expire_mm, cc_expire_yyyy, and CVV are obviously fake sample values and must never resemble a real card number. currency_cd is shown explicitly as "usd" even though this matches the field's own default value.
Sample response
{
"error_code": 0,
"error_msg": "OK",
"proc_avs_response": "Y",
"proc_cvv_response": "M",
"proc_status_code": "00",
"proc_status_text": "Approved",
"proc_auth_code": "AUTH4471",
"proc_payment_id": "PMT-88213377"
}
error_code 0 and error_msg "OK" indicate that the authorization transaction used to validate the card completed without error. proc_avs_response and proc_cvv_response are the processor's address-verification and CVV-verification result codes, and proc_status_code and proc_status_text describe the outcome of the authorization itself. This example leaves out error_details and collection_errors, since no error occurred, as well as proc_cavv_response, proc_merch_comments, and the prepaid- and gift-card-specific fields (proc_fraud_filtering_info, proc_card_available_balance, proc_prepaid_ind, proc_prepaid_reloadable, proc_prepaid_card_type, proc_affluence_type, proc_issuing_country, proc_card_product_type, proc_signature_debit_ind, proc_pinless_debit_ind, and proc_durbin_regulated_ind), none of which apply to this standard credit card validation scenario.