paytabscom / paytabs-ios-library-sample

This repository contains latest static framework (.framework), resources bundle (.bundle), sample apps for both Objective-C and Swift, and documentation to get SDK integrated in the Xcode projects.
MIT License
12 stars 11 forks source link

apple pay request is not well formatted #32 #33

Open Ashish23451 opened 4 years ago

Ashish23451 commented 4 years ago

here is my request :

self.initialSetupViewController = PTFWInitialSetupViewController.init(applePayWith: bundle, andWithViewFrame: self.window.frame, andWithAmount: 5.0, andWithCustomerTitle: "Paytabs", andWithCurrencyCode: "USD", andWithCountryCode: "SA", andWithSDKLanguage: "en", andWithOrderID: "1234", andIsPreAuth: false, andWithMerchantEmail: merchantEmail, andWithMerchantSecretKey: merchantSecretKey, andWithMerchantApplePayIdentifier: "merchant.com.example.Flutter", andWithAssigneeCode: "SDK")

and i always get this response

Response Code: 4001 Response Result: The request is not properly formatted. anyone have solution please reply as soon as possible

AdlyPayTabs commented 4 years ago

Hi Ashish

We can't enable ApplePay on demo/testing accounts, it's not possible You can use the following account to test for SAR currency ApplePay,

Merchant email: qapaytabs@gmail.com Merchant ID: 10050580 Secret Key: xImKNAuOIygV661pxMfkYBQU3WKg3GSAoelcOP0xnhsunuUUg9ffL59O1U54AYFYc0a1Qbzet1IQwCLNM02x6cm76rcGpRFCSPEI

We only support Mastercard and Visa via Apple pay, and you can use any test cards mentioned in the following link https://developer.apple.com/apple-pay/sandbox-testing/