- Create a Payment Method (generate a PaymentMethodId for future transactions).
- Use an existing Payment Method (reference a stored PaymentMethodId to process payments).
- Creating a Payment Method
Field | Description |
---|---|
BillingAddress | Object containing the customer’s billing address. |
AddressLine1, AddressLine2, City, State, PostalCode, Country | Full billing address details. |
BillingFirstName, BillingLastName | The name associated with the payment method. |
CreditCard.PaymentAccountNumber | The credit card number (must be securely transmitted). |
CreditCard.ExpirationDate | Card expiration date (Format: MMYY). |
CreditCard.SecurityCode | The CVV/CVC security code for authentication. |
MerchantPaymentMethodRefId | A unique reference assigned by the merchant for tracking the payment method. |
- Response When Creating a Payment Method
Field | Description |
---|---|
paymentMethodId | The unique ID assigned to the stored payment method (used for future transactions). |
billingAddressId | ID assigned to the billing address associated with the payment method. |
billingAddress | Object containing full billing details. |
paymentMethodCreditCardDetails.binNumber | The first six digits of the stored card (Bank Identification Number). |
paymentMethodCreditCardDetails.paymentLast4Digit | The last four digits of the stored card. |
paymentMethodCreditCardDetails.paymentExpirationDate | The card’s expiration date in MMYY format. |
merchantPaymentMethodRefId | The merchant-provided reference ID for the payment method. |
- Reusing an Existing Payment Method for a Transaction
Field | Description |
---|---|
NetworkProcessing.processingType | Defines the transaction type (initialInstallment, initialRecurring). |
NetworkProcessing.originalNetworkTransactionId | Used for referencing previous transactions (set to null for new payments). |
CustomerId | Optional customer identifier (set to null if not used). |
Invoice.MerchantInvoiceRefId | A unique identifier for tracking the invoice. |
Invoice.Amount.value | The total transaction amount in USD. |
- Payment Response for a Successful Transaction
Field | Description |
---|---|
invoiceId | The unique invoice ID generated by Revolv3. |
merchantInvoiceRefId | The merchant’s reference ID for tracking the invoice. |
networkTransactionId | The transaction ID assigned by the payment network. |
invoiceStatus | Status of the invoice (Paid, Pending, Failed). |
invoiceAttemptStatus | Outcome of the payment attempt (Success, Failed). |
message | A response message indicating approval or failure reason. |
amount.currency | The currency of the transaction (USD). |
amount.value | The total transaction amount processed. |
paymentMethodId | The stored Payment Method ID used for the transaction. |
paymentMethodTypeId | The type of payment method. 1= Credit Card; 2= ACH; 3= GooglePay; 4=ApplePay |
- Summary of API Calls
Action | API Endpoint | Purpose |
---|---|---|
Create a Payment Method | POST /api/PaymentMethod | Generates a PaymentMethodId for future transactions. |
Process a Payment with a Stored Payment Method | POST /api/Payments/sale/{paymentMethodId} | Charges the stored payment method without requiring full details. |
One Off Payment