PayTabs SDK makes the integration with the PayTabs payment gateway very easy by providing a ready-made payment screen that handles the card entry and, billing & shipping information and completes the missing details.
This article is dedicated to walking you through how to manage/manipulate both shipping and billing in this SDK, as shown below:
Show Billing/Shipping Information Section
These are boolean parameters that indicate whether to hide billing/shipping information or not from the payment form screen.
Note that the customer details are still required and must be passed. In case any of the details are missing or passed with invalid values, the request will fail, and the SDK will throw an exception.
By default, the billing and shipping info section is disappeared, sets its flag to true
to let the SDK internally handle the missing billing & shipping info.
configuration.showBillingInfo = true configuration.showShippingInfo = true
Force Shipping Information Validation
This is a boolean parameter that indicates whether to force the customer to provide the shipping information or not.
By default, the validation on shipping info is disabled.
You can pass/use it as shown below:
configuration.forceShippingInfo = true
⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Ionic SDK Integration Manual" solution article.
⇦ And to navigate to the previous step in the integration process "Step 2 - Configure the integration method" click here. ⇦ And to get familiar with the rest of the steps regarding the current step "Step 3 - Initiating the payment" click here.
⇨ Or you can navigate to the next step in the integration process "Step 4 - Accepting the payment" kindly click here.