Follow

How can I choose to display a specific list of Payment Method(s) in the List Response?

If you have configured more than one payment method for a certain division, yet you want the List Reponse to return only a specific list  of payment methods or one payment method. Therefore, OPG allows you to pass an extra parameter in the List Request whereby you could filter the list of the networks that will be displayed or returned in the List Response as follows.

This parameter would work no matter which integration scenario you choose.

 

  },
  "preselection": {
    "networkCodes": [
      "string"
    ]
  },

 

For example, if you want the List Reponse to display a certain network then you should know its exact networkCode. If you are not sure about the netoworkCodes then please contact our support team and they will be glad to help you.  A List Request to display only VISA in the List Response would look as follows:

{
   "transactionId":"tr123",
   "country":"CH",
   "payment":{
      "amount":4,
      "currency":"CHF",
      "reference":"shop 123/07-08-15"
   },
   "customer":{
      "number":"4422",
      "email":"user4422@example.com"
   },
   "preselection":{
      "networkCodes":[
         "VISA"
      ]
   },
   "callback":{
      "returnUrl":"https://dev.oscato.com/shop/success.html",
      "cancelUrl":"https://dev.oscato.com/shop/cancel.html",
      "notificationUrl":"https://dev.oscato.com/shop/notification.html"
   }
}
 

 

You can check this parameter in the API Console on optile.io: https://www.optile.io/de/console#!/list/post_lists 

NB: Please note that you have to login with your Merchant Portal credentials to be able to access the API Console).

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments