Code Monkey home page Code Monkey logo

Comments (5)

AwesomeAndrewMK avatar AwesomeAndrewMK commented on July 17, 2024 1

@stephenmcd, @JlUgia Could you have a look at this, please? Or is it better to raise this ticket somewhere else?

from react-native-make-payment.

AwesomeAndrewMK avatar AwesomeAndrewMK commented on July 17, 2024 1

Hi @stephenmcd. Thanks for the prompt response!

In the scenario you mentioned, everything is fine, but please check this commit with my changes and comments, which will help you reproduce the issue: 9120b25

Just for a demo, I've replaced the image link, as the previous one wasn't working.

from react-native-make-payment.

stephenmcd avatar stephenmcd commented on July 17, 2024 1

Thank you so much for the code sample. I was able to reproduce the error and I just released version 0.1.1 to NPM with the fix: e1a35f0

from react-native-make-payment.

stephenmcd avatar stephenmcd commented on July 17, 2024

Thanks for the report, this is definitely the correct place for it. We'll update here once we have a resolution.

from react-native-make-payment.

stephenmcd avatar stephenmcd commented on July 17, 2024

Hi, I wasn't able to reproduce the error, although there's no doubt you're somehow getting it.

You'll need to provide more info (preferably some code to try) showing how you're creating and reusing the paymentMethods arg in PaymentRequest(paymentMethods, paymentDetails).

Here's what I tried by editing the included demo app, but it did not produce the error:

// this line is in the demo app
const paymentRequest = new PaymentRequest(paymentMethods, paymentDetails);

// added these, but no error
const paymentMethodsSameObj = [paymentMethods[0]];
const paymentRequestObj = new PaymentRequest(paymentMethodsSameObj, paymentDetails);
const paymentMethodsNewObj = [Object.assign({}, paymentMethods[0])];
const paymentRequestNewObj = new PaymentRequest(paymentMethodsNewObj, paymentDetails);

What you're doing must differ from this.

from react-native-make-payment.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.