Assisted Selling calls the webhook URL that you specify in the Settings section of the Oracle Commerce Cloud administration UI.
You will need to implement code that will receive a webhook call from Assisted Selling and formulate the response. Assisted Selling calls the Commerce Cloud server Endpoint, which in turn calls the webhook URL that you have configured.
The webhook URL that you specify in the Settings section of the Oracle Commerce Cloud administration UI will be called before ASA renders its payments screen. For your custom payment configuration to be reflected on this screen, you will need to implement code that will receive that webhook call, then formulate and send back the response.
Expected JSON format for Response Payload Sample
Your JSON needs to use the properties we support. The supported Types
are:
shortText richText date number checkbox
The following is an example of the format of the JSON response that the server expects returned.
{ "payments" : [ { "paymentMethod": "subscription", "paymentMethodName": "Pay in Installments", "summaryDisplayProperties" : ["installmentOptions"], "properties": { "nationalIdentificationCode": { "uiEditorType": "shortText", "default": null, "label": "National ID", "required": true, "type": "shortText" }, "installmentOptions" : { "uiEditorType": "list", "default" : null, "label" : "Installment Options", "required" : true, "type" : "shortText", "options" : {"option1" : "2 payments of $150", "option3" : "5 payments of $60", "option2" : "10 payments of $31", "option4" : "20 payments of $16"} } } }, { "paymentMethod": "card", "paymentMethodName": "Pay by card", "properties": { "nationalIdentificationCode": { "uiEditorType": "shortText", "default": null, "label": "National ID", "required": true, "type": "shortText" } } }, { "paymentMethod": "physicalGiftCard", "paymentMethodName": "Pay by gift card", "properties": { "nationalIdentificationCode": { "uiEditorType": "shortText", "label": "National ID for gift card", "required": true, "default": null, "type": "shortText", "hidden" : false } } } ] }