placepay / place-node Goto Github PK
View Code? Open in Web Editor NEWPlace Node.js Library
License: MIT License
Place Node.js Library
License: MIT License
If you pass invalid api_key to the place object and try to make a request an exception is thrown.
test_private_key_invalid_value
).The promise should be rejected.
Exception is thrown. The exception cannot be catched.
const place = require('place-api');
place.api_key = 'test_private_key_invalid_value';
try {
var account = place.Account.get()
.then(function(account) {
console.log(account)
}).catch(function(error) {
console.log(error);
});
} catch (error) {
console.log(error);
}
Unauthorized: api_sessions
at Request._callback (/Users/atanasov/Desktop/work/place-test/node_modules/place-api/lib/APIResource.js:138:31)
at Request.self.callback (/Users/atanasov/Desktop/work/place-test/node_modules/request/request.js:185:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request.<anonymous> (/Users/atanasov/Desktop/work/place-test/node_modules/request/request.js:1161:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage.<anonymous> (/Users/atanasov/Desktop/work/place-test/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
When calling delete_all method for specific resource with correct id the request is successful, but the resource is not deleted.
The payment method is marked as deleted.
The payment method is not marked as deleted.
place.PaymentMethod.delete_all([{
id: '3bZubZyPWpM6tRdQrH6TQ'
}])
.then(function(result) {
// the correct payment method is returned, but it is not deleted
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.