Comments (8)
You can use the hardcoded key for your tests.
from mangopay2-ruby-sdk.
@seuros Hey, I'm intrigued. Did I miss something obvious ? I know nothing about an hard-coded key.
from mangopay2-ruby-sdk.
https://github.com/Mangopay/mangopay2-ruby-sdk/blob/master/spec/spec_helper.rb
from mangopay2-ruby-sdk.
I'll try that and report back. Thank you @seuros.
from mangopay2-ruby-sdk.
Thanks for your help @seuros.
@jlecour I'll close this for now, but do come back to us if you have any further queries.
from mangopay2-ruby-sdk.
It remains a bit unclear to me how I should test my implementation code.
What special behavior is triggered by the key cqFfFrWfCcb7UadHNxx2C9Lo6Djw8ZduLi7J9USTmu8bhxxpju
?
Is it just a special account that is pruned every now and then (like a testing database) ?
Thanks
from mangopay2-ruby-sdk.
@jlecour there is no special behaviour with this account (ClientId and Passphrase) given in https://github.com/Mangopay/mangopay2-ruby-sdk/blob/master/spec/spec_helper.rb (ie no pruning/modifications made on our side unless you ask us to).
It's just a test account like any other account in sandbox. You can create your own test account if you like at https://www.mangopay.com/signup/create-sandbox/
from mangopay2-ruby-sdk.
@jlecour we use a sandbox account (like the one used by the gem itself) and then record the requests with VCR so that future test runs do not need to hit the API.
For recording front-end requests (like tokenizing the credit card) we use Puffing Billy.
from mangopay2-ruby-sdk.
Related Issues (20)
- Getting `MangoPay::ResponseError: The authorization credentials are not valid` after running several tests HOT 7
- Can't send headers in update request HOT 1
- Can't create a user: The requested resource does not support http method 'POST'. (MangoPay::ResponseError) HOT 1
- FilterParameters.response doesnt handle cases when the response is not valid json HOT 3
- Test
- NoMethodError undefined method `body' for nil:NilClass on Net::ReadTimeout error HOT 2
- Error avec le compte production HOT 5
- Effectuer un refund sur un payin HOT 2
- The requested resource does not support http method 'POST' on MangoPay::KycDocument.create_page HOT 5
- Backward-compatibility HOT 7
- Error instead of payment form on api.sandbox.mangopay.com/Content/PaylineTemplateWidget HOT 5
- Not all classes supports headers options and recurring pay in registratoin get endpoint is missing HOT 1
- Missing fetching of recurring pay in registration object HOT 1
- Which version to use? v3 or v4? HOT 1
- Allow setting http open_timeout
- Allow setting max_retries
- HTTP request defaults HOT 1
- Can't access "consult_url" in sandbox HOT 1
- MultiJson::ParseError is thrown on HTTP error 5XX HOT 1
- Improve error handling when logging is enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mangopay2-ruby-sdk.