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
- Force Shipping Information Validation
- Link billing name with the cardholder name
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
trueto 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
Link billing name with the cardholder name
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
falsethe billing name and the card holder name will be seperated
configuration.linkBillingNameWithCard = true
⌂ To get familiar with the whole process and the other steps, kindly navigate to our "The Native IOS SDK Integration Manual" solution article. ⇦ And to navigate to the previous step in the integration process "Step 2 - Configure the integration method" kindly click here. ⇦ And to get familiar with the rest of the steps regarding the current step " Step 3 - Native IOS SDK | 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.