cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass custom parameters with Accept Hosted Payment form?

Hello, 

 

I am using Accept hosted form for payment. I have configured the webhooks to receive the notifications.( I am not receiving the notifications). I have also configured Silent POST for receiving the notifications. 

 

However, my question is, how to pass custom parameters to identify the transaction. I would like to pass parameters like InvoiceID, ClientID and some other additional information. 

 

Any idea how to do it? I am using the below JSON object.

 

 

{
    \"getHostedPaymentPageRequest\": {
        \"merchantAuthentication\": {
            \"name\": \"#api_id#\",
            \"transactionKey\": \"#transacton_key#\"
        },
        \"transactionRequest\": {
            \"transactionType\": \"authCaptureTransaction\",
            \"amount\": \"#amount#\"
        },
        \"hostedPaymentSettings\": {
            \"setting\": [
                {
                    \"settingName\": \"hostedPaymentReturnOptions\",
                    \"settingValue\": \"{\\\"showReceipt\\\": true, \\\"url\\\": \\\"#recept_ur#\\\", \\\"urlText\\\": \\\"Continue\\\", \\\"cancelUrl\\\": \\\"#cancelurl#\\\", \\\"cancelUrlText\\\": \\\"Cancel\\\"}\"
                },
                {
                    \"settingName\": \"hostedPaymentPaymentOptions\",
                    \"settingValue\": \"{\\\"cardCodeRequired\\\": false, \\\"showCreditCard\\\": true, \\\"showBankAccount\\\": true}\"
                }
            ]
        }
    }
}
kirancshet1
Member
2 REPLIES 2

I would also like this.  I have used other payment pages, that simply provide a user defined field to pass data in and it simply gets included in the response.  Otherwise, it gets ignored.  This is very handy.

CarlislePrint
Member

Great idea .. !! impressed !!