Developer Portal

Content

9 Interactive Requests

Payway supports secure web-based transactions for your applications.  Many payment methods are available for interactive transactions, including payment wallets, and hosted payment entry which redirects credit card data entry to PaywayWS and eliminates the need for your server to receive any sensitive credit card data.

To support these transactions PaywayWS provides the ability to queue transactions. This sets up the transaction on PaywayWS and returns to you a paywayRequestToken. This token is what is passed to the browser, and an associated java script is used to send the account information entered by the user plus the transactionToken to PaywayWS.

The paywayRequestToken can be used ONLY once and ONLY for the transaction previously queued from your server. The user has no ability to change amounts or other transaction attributes.

See the related documents section at the beginning of this document for more information on Hosted Payment Entry and various wallet payment methods offered by PaywayWS.

9.1 Queue Sale Transaction

JSON ‘request’ valuequeueSale
DESCRIPTIONThe queueSale request does not require a Payway session token. Your credentials are passed in this request and the paywayRequestToken, a one-time use token, is returned.
After queueSale the card page is loaded and sendQueuedTransaction is called via a java script.
URLURL /Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTES

9.2 Queue Trial Authorize

JSON ‘request’ valuequeueTrialAuthorize
DESCRIPTIONqueueTrialAuthorize request does not require a Payway session token. Credentials are passed in this request and the paywayRequestToken, a one-time use token, is returned along with the payway vault token corresponding to the customer’s credit card. This method can be used to verify a card account as well as generated a payway token that can be used in subsequent transactions.
A queueTrialAuthorize performs a verification of $0.00 on the cardholder’s credit card. No credit hold is issued on the cardholder’s account.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESThis method can only be used where the accountInputMode is the primaryAccount Number.

This feature must be enabled by payway prior to production requests.

9.3 Queue Trial Authorize

JSON ‘request’ valuequeueTrialAuthorize
DESCRIPTIONqueueTrialAuthorize request does not require a Payway session token. Credentials are passed in this request and the paywayRequestToken, a one-time use token, is returned along with the payway vault token corresponding to the customer’s credit card. This method can be used to verify a card account as well as generated a payway token that can be used in subsequent transactions.
A queueTrialAuthorize performs a verification of $0.00 on the cardholder’s credit card. No credit hold is issued on the cardholder’s account.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESThis method can only be used where the accountInputMode is the primaryAccount Number.

This feature must be enabled by payway prior to production requests.

9.4 Queue Authorize Transaction

JSON ‘request’ valuequeueAuthorize
DESCRIPTIONThe queueAuthorize request does not require a Payway session token. Your credentials are passed in this request and the paywayRequestToken, a one-time use token, is returned.
After queueAuthorize the card page is loaded and sendQueuedTransaction is called via a java script.
A background capture request must be executed on a successful authorize for the sale to be completed funds deposited.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCES text/json
NOTES

9.5 Queue Credit Transaction

JSON ‘request’ valuequeueCredit
DESCRIPTIONThe queueCredit request does not require a Payway session token. Your credentials are passed in this request and the paywayRequestToken, a one-time use token, is returned.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTES

9.6 Send Queued Transaction

JSON ‘request’ valuesendQueuedTransaction
DESCRIPTIONThis request will send a previously queued transaction.
Account information entered by the user is passed in this request.
URL/Payment/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESThe form of the account data depends on the payment method the user has chosen. It could be primary account data, Apple Pay encrypted data, Google Pay data, or P2PE encrypted data. This is sent from the browser via a java script when the user clicks on a particular button to make the payment.
See the various wallet and payment method integration guides for more information.

9.10 Get Hosted Transaction Results

JSON ‘request’ valuehostedTransactionResults
DESCRIPTIONThe hostedTransactionResults request is executed from the browser and returns only the result code and a possible text error message.
URL/Query/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESThis request is executed from your server and returns all fields for the related transaction. Account sensitive data is masked, and internal fields used only by PaywayWS are not returned.

9.11 Queue Add Account Request

JSON ‘request’ valuequeueAddAccount
DESCRIPTIONTo allow interactive web users to add a payment account, you first have to set up a queueAddAccount request from your server to PaywayWS. This is similar to the queueSale type requests described above. A paywayRequestToken is returned to be sent to PaywayWs with the account information the users add.
URLAccount/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESNOTES If you are participating in the PaywayWS Account Updater program, any updates to the related account, such as a new expiration date, are applied to the original token. You do not have to acquire a new token for the updated account.

9.12 Send Queued Add Account Request

JSON ‘request’ valuesendQueuedAddAccount
DESCRIPTIONCalled from a browser java script which redirects the primary account number input directly to PaywayWS.
URLAccount/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESThe format of the data depends on the account input method.

9.13 Get Hosted Add Account Results

JSON ‘request’ valuehostedAddAccountResults
DESCRIPTIONUsed in conjunction with queueAddAccount and sendAddAccount to execute a web-based hosted add account request. This request will return all fields for the related payment account.
URL/Query/CreditCard
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTESSensitive data is masked, and internal fields used only by PaywayWS are not returned.

9.14 getApplePaySession

This request is called only from the ApplePay.js java script provided for integrations with PaywayWS ApplePay.  See the ApplePay integration guide for more information.

JSON ‘request’ valuegetApplePaySession
DESCRIPTIONDESCRIPTION Validates Apple pay merchant based upon your domain and returns Apple pay session data.
URL/Session
METHODPost
URL PARAMSNone
CONSUMEStext/json
PRODUCEStext/json
NOTES

Subscribe

Every post in your inbox