Example

This example uses Px Pay2 by Payment Express.

Redirect URL

Field Value
Contents {{oPaymentServerTransaction.CustomProperties.Get("url")}}

Prepare payment

Field Value
Format XML
Host Address https://uat.paymentexpress.com/pxaccess/pxpay.aspx
Request Method Post
Contents

<GenerateRequest>
<PxPayUserId>InforCivics_Dev</PxPayUserId>
<PxPayKey>*******************PX PAY2 KEY***************
</PxPayKey>
<MerchantReference>IPS_USRCDGWONG01</MerchantReference>
<TxnType>Purchase</TxnType>
<AmountInput>{{oDrawerTransaction.TransactionAmount}}
</AmountInput>
<CurrencyInput>USD</CurrencyInput>
<TxnData1>Data 1</TxnData1>
<TxnData2>Data 2</TxnData2>
<TxnData3>Data 3</TxnData3>
<EmailAddress></EmailAddress>
<TxnId>{{oDrawerTransaction.TransactionNumber}}-2RM</TxnId>
<UrlSuccess>https://civicsurl/
return?token={{oDrawerTransaction.RegisterTransaction.TransactionToken}}
</UrlSuccess>
<UrlFail>https://civicsurl/
return?token={{oDrawerTransaction.RegisterTransaction.TransactionToken}}
</UrlFail>
</GenerateRequest>
Response Mapping

Source: /Request/URI

Destination: url

Value:

Success Conditions

Name: url

Value:

Operator: IsNotEmpty

Authorize payment

Field Value
Format XML
Host Address https://uat.paymentexpress.com/pxaccess/pxpay.aspx
Request Method Post
Contents
<ProcessResponse>
<PxPayUserId>InforCivics_Dev</PxPayUserId>
<PxPayKey>*******************PX PAY2 KEY***************
</PxPayKey>
<Response>{{oPaymentServerTransaction.CustomProperties.Get
("result")}}</Response>
</ProcessResponse>
Response Mapping

Source: /Response/ReCo

Destination: Status

Value:

Source: /Response/DpsTxnRef

Destination: DpsTxnRef

Value:

Success Conditions

Name: Status

Value: 00

Operator: Equals

Inquire payment

Field Value
Format XML
Host Address https://uat.paymentexpress.com/pxaccess/pxpost.aspx
Request Method Post
Contents
	
<Txn>
<PostUsername>InforCivics_Dev857</PostUsername>
<PostPassword>****** PX POST KEY ********</PostPassword>
<TxnType>Status</TxnType>
<TxnRef>{{oDrawerTransaction.TransactionNumber}}-2RM
</TxnRef>
</Txn>
Response Mapping

Source: /Txn/Transaction/@responseText

Destination: InquireCaptureResponseText

Value:

Source: /Txn/DpsTxnRef

Destination: DpsTxnRef

Value:

Source: /Txn/Transaction/@reco

Destination: InquireCaptureResponseCode

Value:

Success Conditions

Name: InquireCaptureResponseCode

Value: 00

Operator: Equals

Reverse payment

Field Value
Format XML
Host Address https://uat.paymentexpress.com/pxaccess/pxpost.aspx
Request Method Post
Contents
<Txn>
<PostUsername>InforCivics_Dev857</PostUsername>
<PostPassword>*** PX POST KEY ***</PostPassword>
<TxnType>Refund</TxnType>
<TxnRef>{{oDrawerTransaction.TransactionNumber}}-2RM-R
</TxnRef>
<InputCurrency>USD</InputCurrency>
<Amount>{{oDrawerTransaction.ReferenceTransactionNumber.
TransactionAmount}}
</Amount>
<DpsTxnRef>{{oDrawerTransaction.ReferenceTransactionNumber.
PaymentServerTransaction.CustomProperties.Get("DpsTxnRef")}}
</DpsTxnRef>
</Txn>
Response Mapping

Source: /Txn/Transaction/@responseText

Destination: RefundResponseText

Value:

Success Conditions

Name: RefundResponseText

Value: APPROVED

Operator: Equals