paytabscom / paytabs-android-library-sample

Sample for Paytabs android library
MIT License
11 stars 7 forks source link

Shipping address not provide issue #26

Closed miralsapariya closed 1 year ago

miralsapariya commented 3 years ago

image

I always passes the shipping address ..getting arror like above screenshot my code like below

PaymentSdkShippingDetails data=new PaymentSdkShippingDetails(); data.setAddressLine("B6, chandrapark"); data.setCity("Rajkot"); data.setCountryCode("+91"); data.setName("miral"); data.setPhone("9210568410"); data.setEmail("patelmiral61@gmail.com"); data.setState("Gujarat"); data.setZip("360005");

PaymentSdkConfigurationDetails configData = new PaymentSdkConfigBuilder(profileId, serverKey, clientKey, amount, currency) .setCartDescription(cartDesc) .setLanguageCode(locale) // .setBillingData(billingData) .setMerchantCountryCode("US") // ISO alpha 2 .setShippingData(data) .setCartId(cartId) .showBillingInfo(false) .showShippingInfo(false) .forceShippingInfo(false) .setScreenTitle(screenTitle) .build();

mohamedkhairy953 commented 3 years ago

Hello, The issue here is that you do not provide the billing object and you have to provide it, but the error message is wrong and it will be fixed next release.

Thank you.

miralsapariya commented 3 years ago

why it is compulsory to pass billing address and shipping address. In my project i will use this payment gateway for service base not selling goods. So no need such type of address. Is there any way we can bypass the billing and shipping address ....?

mohamedkhairy953 commented 3 years ago

You can pass any fixed data in billing object that make it work, and shipping data are not required as long as you are passing forceShippingInfo with false. But bypassing billing data technically not possible yet.

You can ask customercare@paytabs.com for more details regarding these requests.

KhaledAlramam commented 1 year ago

Closed due to inactivity