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.


configData.showBillingInfo = true
configData.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:

configData.forceShippingInfo = true




A boolean parameter that Indicates whether to add the billing name to be the same as the cardholder's name or not. 


By default, the billing name is linked with card holder name, if you set its flag to false the billing name and the card holder name will be seperated
configData.linkBillingNameWithCard = true







⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Native Android 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.