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

unable to do payment #23

Open
thtRajasthaniGuy opened this issue Jun 24, 2021 · 1 comment
Open

unable to do payment #23

thtRajasthaniGuy opened this issue Jun 24, 2021 · 1 comment

Comments

@thtRajasthaniGuy
Copy link

thtRajasthaniGuy commented Jun 24, 2021

1.first issue is when i pass amount in amount filed its through error : Exception in native call from JS

            const allConfigurations = {
                appCredentials: appCredentials,
                sessionParameters: {
                    paymentStatementDescriptor: 'paymentStatementDescriptor',
                    transactionCurrency: 'kwd',
                    isUserAllowedToSaveCard: true,
                    paymentType: PaymentTypes.ALL,
                    amount:Helper.ownerPaymentDatails?.totalGrandTotal,
                    //shipping: shipping,
                    allowedCadTypes: AllowedCadTypes.CREDIT,
                   // paymentitems: paymentitems,
                    paymenMetaData: { a: 'a meta', b: 'b meta' },
                    applePayMerchantID: 'applePayMerchantID',
                    authorizeAction: { timeInHours: 10, time: 10, type: 'CAPTURE' },
                    cardHolderName: 'Card Holder NAME',
                    editCardHolderName: false,
                    postURL: 'https://tap.company',
                    paymentDescription: 'paymentDescription',
                    destinations: {
                        "destination": [
                          {
                            "id":Helper.ownerPaymentDatails?.ownerDestinationId ,
                            "amount":Helper.ownerPaymentDatails?.ownerMoney ,
                            "currency": "KWD",
                            "description":"testing",
                          },
                        ]
                      },
                    trxMode: TrxMode.PURCHASE,
                   // taxes: taxes,
                    merchantID: '',
                    SDKMode: SDKMode.Sandbox,
                    customer: customer,
                    isRequires3DSecure: true,
                    receiptSettings: { id: null, email: false, sms: true },
                    allowsToSaveSameCardMoreThanOnce: false,
                    paymentReference: paymentReference,
                },
            };
  1. second issue is in paymentReference when i pass transaction and order its through native error: Unexpected value at line 1 coloumn 79 path $.transaction

                             const paymentReference = {
                                 track: 'track',
                                 payment: 'payment',
                                 gateway: 'gateway',
                                 acquirer: 'acquirer',
                                transaction: '',
                                 order: '',
                                 gosellID: null,
                             };
    
@GhalyahFA
Copy link

Hi @govind1530 , have you found a solution? I'm facing the same issue

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

2 participants