In this tutorial, we are going to set up and configure the Liferay shopping portlet to process payments using Btop.
Before starting, you need to meet the following requirements :
The btop-portlet must be deployed on your server (you can download Btop from Liferay marketplace or from Btop website).
At least one payment plugin needs to be deployed.
In the administration panel you have to configure a seller account. You will also have to assign payment plugins to this seller. These steps are explained in the user guide.
Start by dragging the shopping portlet into a page: Click on add > more > shopping > shopping
Click on the portlet configuration; Btop appears in the configuration view.
In the "Payment type" area, select "Btop" option.
Enter the seller ID, this information can be found in the seller list from the administration panel (Click on
Configuration > Sellers)
Save your configuration settings.
Simulate a purchase
The next step is to create an article and proceed to checkout.
Click on "Add Item"
Fill in the fields and save.
Then select a product.
Click on the product; it will be added to your shopping cart.
Click on "checkout" to fill in the billing form. Next, confirm by clicking on "Continue".
You are forwarded to the order summary page. Click on "Continue".
The next screen lists all the payment methods available for the seller account. For this guide, we have 2 payment
plugins configured: "Paypal" and "Credit Card'. Select a payment method, for exemple "Credit card". Note: To
configure a paypal account, click on the the next link or click on the user guide for another payment plugin.
You are redirected to the credit card payment page.
Click on "confirm"
Once your payment is complete, the shopping portlet displays a confirmation message.