Developer Portal

Content

8 Background Requests

Examples for samples of all requests.

8.1 Get a Payway Session

JSON ‘request’ valuegetPaywaySession
DESCRIPTIONObtains a Payway session token based upon presented credentials
URL/Session
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESMost PaywayWS requests require a valid Payway session token, which must be retrieved using this request. The exception is sendQueuedTransaction which requires a paywayRequestToken. Session tokens can be used for multiple requests. Session tokens that are not used for 5 minutes are deleted and a new session will have to be requested.

Multiple active sessions for the same user are allowed.

DO NOT CALL THIS METHOD FROM A BROWSER. This is to be called from a secure site connected to PaywayWS.

User credentials for the development, testing, and live systems will be provided by Payway for integration and setup.
The Payway_Admin web application is used by merchants to manage users and credentials.

8.2 Trial Authorize

JSON ‘request’ valuetrialAuthorize
DESCRIPTIONtrialAuthorize performs a verification of $0.00 on the cardholder’s credit card. No credit hold is issued on the cardholder’s account. The accountInputMode can either be primaryAccountNumber or paywayAccountToken. If primaryAccountNumber is used, payway will also return a vault token(paywayAccountToken) in the JSON Reply that corresponds to the customer’s account. This can be used in future subsequent transactions.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESThis feature must be enabled by payway prior to production requests.

8.3 Authorize Request

JSON ‘request’ valueAuthorize
DESCRIPTIONDESCRIPTION Authorize puts a hold, for the amount of the authorization, on the cardholder’s account. A subsequent capture request must be executed to transfer the funds.
URL/Payment/CreditCard
METHODPost
URL PARAMS None
CONSUMEStext/json
PRODUCEStext/json

8.4 Capture Authorized Transaction

JSON ‘request’ valuecapture
DESCRIPTIONCapture previously authorized funds
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESTransactions that are authorized place a hold on the account holder’s account for the amount of the authorization. These funds can be captured by calling the method described below. Funds will be transferred during the daily settlement process. Separate Authorize and Capture is used in a fulfillment environment where the payment is authorized at purchase time and the goods or service are delivered later.

8.5 Sale Request

JSON ‘request’ valuesale
DESCRIPTIONA sale request is equivalent to an Authorize, followed by a Capture. A hold is placed on the credit card account, and funds are transferred during the nightly settlement.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json

8.7 Credit (Refund)

JSON ‘request’ value credit
DESCRIPTIONA credit request will transfer funds from the merchant account to the cardholder. This is often called a refund.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTES

8.6 Sale Pre Authorized

JSON ‘request’ valuesalePreAuthorized
DESCRIPTIONIn some cases, an authorization is performed outside of PaywayWS. In order to enter these transactions into Payway, the salePreAuthorized request is supported. The authorization code received externally is entered as part of this request. The funds are deposited in the same manner as authorizations performed through PaywayWS.
URL/Payment/CreditCard
METHODMETHOD Post
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json

8.8 Void (Cancel)

JSON ‘request’ valuevoid
DESCRIPTIONTransactions that have not yet been deposited may be voided using the void request. After a transaction has been deposited (money transferred), a credit request is required to refund the money to the cardholder. Void will succeed on transactions that are authorized or captured, but not yet deposited. In general, voids must be done on the same day as the authorize, capture, or sale. Otherwise a refund must be issued.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json

8.10 Read Transaction Information

JSON ‘request’ valuegetTransaction
DESCRIPTIONReturns the transaction and payment account information for the specified transaction.
URL/Query/CreditCard
METHODGet
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESTransactions are uniquely identified by a source ID and transaction name.

8.9 Add Account

JSON ‘request’ valueaddAccount
DESCRIPTIONThis request is used to add a payment account to the PaywayWS vault for later use.
URL/Account/CreditCard
METHODPut
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESA paywayAccountToken is returned that can be used in future transactions.

8.11 Read Account Information

JSON ‘request’ valuegetAccount
DESCRIPTIONUsed to find a particular payment account.
URLURL /Query/CreditCard
METHODGet
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESPayment accounts are uniquely identified by division ID and account token.

8.12 Update Account Data

Use this method to update account data.  Account number cannot be updated.  If there is a new account number use addAccount and you will get a new token.  All other fields normally input by addAccount can be updated with this method, including expiration date.   Note that if you are using Payway’s Account Updater expiration dates will automatically be updated when they change.

JSON ‘request’ valueupdateAccount
DESCRIPTIONUsed to update a particular payment account.
URL/Query/CreditCard
METHODPut
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESPayment accounts are uniquely identified by division ID and account token.

8.13 Update Transaction Notes

Use this method to update optional notes fields for a specific transaction.  Only the notes fields can be updated.

JSON ‘request’ valueupdateTransactionNotes
DESCRIPTIONUsed to update notes for specific transaction.
URL/Payment/CreditCard
METHODPut
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESNotes fields can only be updated.

 

Subscribe

Every post in your inbox