Tap-Payments / gosellSDK-ReactNative

ReactNative plugin for goSell checkout SDK
11 stars 12 forks source link

unable to do payment #23

Open thtRajasthaniGuy opened 3 years ago

thtRajasthaniGuy commented 3 years ago

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 commented 3 years ago

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