Git Product home page Git Product logo

nodejs-sdk's People

Contributors

aroundthesea avatar camerona93 avatar kromped avatar lucasstinchcombe avatar mattuuh7 avatar naissa12 avatar sharonlingqiongtan avatar thef1rstpancake avatar vasusen avatar wepayer avatar y2chaits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-sdk's Issues

Accent in value of one of the values of payer_rbits fails the payment

When you do wepay.call('/checkout/create', {......., payer_rbits:rbits] where rbits is an array with one object being an address rbit, if the address's city includes an accent, it fails.

Sample rbit:

              receive_time: credit_card.created_at.getTime(),
              source: 'user',
              type: 'address',
              properties: {
                address: {
                  address1: credit_card.address.street,
                  city: credit_card.address.city,
                  region: credit_card.address.province,
                  postal_code: credit_card.address.postal_code,
                  country: credit_card.address.country
                }
              }

In our case, city was Montréal, failing the call. Making the same call with Montreal was accepted.

Stacktrace:

Error: Input could not be parsed
at ....
at IncomingMessage.<anonymous> (/app/node_modules/wepay/lib/wepay.js:84:25)

I have not tested if this issue where you include an accented character in any other places fails the call but I would assume it might.

WEPAY constructor options not used

The options passed to the WEPAY constructor are not used anywhere (eg, client_id, & client_secret). They should be automatically merged with the parameters that are sent in the request.

CORS errrors when calling API

Hello.
I am using this npm module in meteor project, and this is my code implementation.

// local variables
var wepay_settings = {
'client_id' : 'XXXXXXX',
'client_secret' : 'XXXXXXX',
'access_token' : 'XXXXXXXXX', // used for oAuth2
// 'api_version': 'API_VERSION'
}

    var wp = new wepay.WEPAY(wepay_settings);
    wp.use_staging(); // use staging environment (payments are not charged)
    wp.call('/checkout/create',
        {
            'account_id': XXXX,
            'amount': 5,
            'currency': 'USD',
            'short_description': 'Test: Selling 42 Pens',
            'type': 'goods'
        },
        function(response) {
            console.log('%s', response);
        }
    );

I have got below errors when calling this API

I am pulling my hairs for few days to solve this problem, but I couldn't find any solution yet.
Is there the problem of this package module.
Please help me with this issue. Thank you so mcuh.

Use Promises

Update API to use promises instead of callbacks.

/checkout/create response is incomplete

Do to the checkout/call being async
console.log("%s",response) prints:
{"checkout_id":1142912238,"account_id":1484170267,"type":"service","short_description":"Test Checkout","currency":"USD","amount":50,"state":"new","soft_descriptor":"WPY*David Small Stage","auto_capture":true,"create_time":1468179813,"delivery_type":"subscription","gross":0,"reference_id":null,"callback_uri":null,"long_description":null,"fee":{"app_fee":0,"processing_fee":0,"fee_payer":"payer"},"chargeback":{"amount_charged_back":0,"dispute_uri":null},"refund":{"amount_refunded":0,"refund_reason":null},"hosted_checkout":{"checkout_uri":"https://stage.wepay.com/api/checkout/1142912238/e5e2b1aa","redirect_uri":null,"shipping_fee":0,"require_shipp

You can see at the end, "require_shipp" is cut off and the rest is missing.

Error 503 first byte timeout

I am getting this error when i call to /checkout/create method .

?xml version="1.0" encoding="utf-8"?>

<title>503 first byte timeout</title>

Error 503 first byte timeout

first byte timeout

Guru Mediation:

Details: cache-lax1431-LAX 1469176127 1060265685


Varnish cache server

Valid email addresses marked as invalid (false positive)

Hi,

Not sure if this is the right repo, but my wife encountered an issue with Freshbooks (who uses wepay for their invoice transactions), where a valid email address was used, but wepay returned with an invalid_request ("Invalid parameter 'email' expected a valid email addresss", which also has a typo sss btw).

This seems to be cause by email addresses that use an & or - (didn't have the time to narrow it down more).
Example: foo.bar+hi&[email protected] is a perfectly valid email address, but wepay seems to trip over it.

Email address formats like these are used fairly frequently in the Canadian Government, so this seems to be an issue that's worth investigating and fixing ;)

You can move it to the proper repo if this isn't the one (couldn't really find the "main" repo for Wepay which, I assume, is private).

Cannot find node module.

Not sure what's up, but I keep running into this running server.js:

Error: Cannot find module 'wepay'

Any ideas?

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.