post https://{server_name}/v1/charges/google/sale
Create a new Charge
This end point creates a new charge. Information for credit cards is coming from google. For more information about the process see section for Google Pay integration. Scenario when merchant is hosting Google button by himself. Payarc API is expecting base 64 encoded string. For example, if paymentData is the object provided by google, payarc is expecting result of :
encrypted_data: Buffer.from(JSON.stringify(paymentData.paymentMethodData.tokenizationData.token), 'utf-8') .toString('base64')
Following are the error codes associated with 'new charge' creation:
Status | Error message |
---|---|
Activity Limit Exceeded | Activity Limit exceeded |
Bad Request - Try Again | SystemError |
Bad Request - Try Again | System Error (Tran) |
Declined | General Card Auth Decline |
Declined | Do not honor |
Declined | Suspected Card |
Duplicate transaction | Duplicate transaction |
Expired Card | Expired Card |
Host Validation Error: Contact PAYARC | Host Validation Error |
Insufficient Funds | Withdrawal Limit exceeded |
Invalid Amount | Invalid Amount |
Invalid From Account: Contact PAYARC | Invalid From Account |
Invalid Service: Contact PAYARC | Invalid Service |
Possible Duplicate Request | Possible Duplicate Request |
Re-enter transaction | Re-enter transaction |
Transaction Amount Invalid | The value '57679.99999999999' of element 'transactionAmount' is not valid |