BPAPI Methods

BPAPI method WebShop/Register

WebShop/Register

Presents HTML page which handles initial registration and final checkout for a Web shop.

Authorization required: No

HTTP methods allowed: POST

Presents HTML page which handles initial registration and final checkout for a Web shop.

The response will always be in HTML-format (with Javascript). JSON will not be returned (except when the request-syntax is invalid or any of the parameters are invalid)

The parameters should be on the form
'item_name_1', 'item_quantity_1', 'item_price_1'
'item_name_2', 'item_quantity_2', 'item_price_2'
and so on.
Note that although price is given as a parameter to this method it is not considered authorative (the system will calculate the correct price and use that for further processing).

There are no samples for this method but you can use WebShop/RegisterSimple (which uses HTTP GET), for testing.
Workflow for WebShop Checkout: Customer/Add or VerifyPassword and (by Javascript from page generated by WebShop/Register) =>
-WebShop/RegisterPayment (by Javascript from page generated by WebShop/Register) =>
payment_completion_url (external Payment provider) =>
WebShop/RegisterPaymentCallback (by callback from Payment provider) =>
WebShop/Register (internal transfer from WebShop/RegisterPaymentCallback by BPAPI)

WebShop/Order may be called at any stage after the initial call to register, in order to check on the order-status.

Popularity: 27 (number of times method has been accessed)

Documentation and tests automatically generated from source-code 2020-08-03 15:21