Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK not working "Customer first name is required" & "sdk_result": "FAILED" #48

Open
Talha-Farrukh opened this issue Dec 13, 2024 · 0 comments

Comments

@Talha-Farrukh
Copy link

I'm trying to initiate the payment.

On Android: Payment model is appearing and after adding payment details I got the error from the SDK.
ERROR: {
"sdk_error_description": "{
"errors": [
{
"code": "1130",
"description": "Customer first name is required"
}
],
"reference_id": "TS03A2220241641Kp1c1312241"
}",
"order_number": "300",
"sdk_error_code": "400",
"transaction_number": "",
"sdk_error_message": "Customer first name is required",
"sdk_result": "SDK_ERROR"
}

Even in my configuration first_name is going fine

On IOS: My Payment model is not appearing and SDK is throwing an error
ERROR: {"order_number": "300", "sdk_result": "FAILED", "transaction_number": "", "trx_mode": "CHARGE"}

Note: I'm using this same configuration for both Android and ios but it behaving differently

SDK Configurations: {
"appCredentials": {
production_secrete_key: TAP_PAYMENT_PRODUCTION_SECRET_KEY,
language: Languages.EN,
sandbox_secrete_key: TAP_PAYMENT_SANDBOX_SECRET_KEY,
bundleID: BUNDLE_ID,
},
"sessionParameters": {
"paymentStatementDescriptor": "",
"transactionCurrency": "SAR",
"isUserAllowedToSaveCard": true,
"paymentType": "PaymentType.ALL",
"amount": "110",
"shipping": [],
"allowedCadTypes": "ALL",
"paymentitems": [],
"paymenMetaData": {
"orderId": "300"
},
"applePayMerchantID": "",
"authorizeAction": {
"timeInHours": 10,
"time": 10,
"type": "CAPTURE"
},
"cardHolderName": "",
"editCardHolderName": true,
"postURL": TAP_POST_URL,
"paymentDescription": "",
"destinations": "",
"trxMode": "TransactionMode.PURCHASE",
"taxes": [],
"merchantID": TAP_MERCHANT_ID ,
"SDKMode": "SDKMode.Sandbox",
"customer": {
"first_name": "test",
"last_name": "test",
"email": "[email protected]"
},
"isRequires3DSecure": true,
"receiptSettings": {
"email": true,
"sms": true
},
"allowsToSaveSameCardMoreThanOnce": false,
"paymentReference": {
"track": "track",
"payment": "payment",
"gateway": "gateway",
"acquirer": "acquirer",
"transaction": "",
"order": "300",
"gosellID": null
},
"uiDisplayMode": "LIGHT",
"appearanceMode": 0,
"supportedPaymentMethods": []
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant