Comments (8)
@lasergoat https://docs.spreedly.com/guides/debugging/#timeouts
from spreedly.
You can override the default timeouts in the config.
$config = [
'key' => '', // Environment key
'secret' => '', // Signing Secret
'gateway' => '', // Default gateway
'timeout' => 123, // Default 15
'connect_timeout' => 456 // Default 10
];
http://docs.guzzlephp.org/en/latest/request-options.html#timeout
http://docs.guzzlephp.org/en/latest/request-options.html#connect-timeout
from spreedly.
So the timeout Spreedly is talking about, is that timeout, or connect_timeout?
And shouldn't the default be 64 as recommended by Spreedly?
from spreedly.
I believe connect_timeout is the time it takes to connect to Spreedly and timeout is the time it takes after the connection is made to Spreedly. So the 64 seconds Spreedly was referring to would be timeout. I have no plans to change the default, but I'm considering adding a timeout method that could be used override the timeout for specific api calls, Spreedly::timeout(64)->payment('sfds3gh41287dhfui')->purchase(1098)
from spreedly.
I am curious. Why not just add the recommended timeout settings to provide a stable experience?
They recommend having it to 64 secs as per their docs.
from spreedly.
After thinking about it more, you right. So i set the default to 64 seconds and added a new method to override api calls like Spreedly::timeout(15)->payment('sfds3gh41287dhfui')->get()
that don't need 64 seconds.
https://github.com/tuurbo/spreedly#changelog
from spreedly.
How do you know which calls need 15 and which need 64? Is it calls that reach to a gateway that need the 64?
from spreedly.
@lasergoat Going from memory, up to 15 secs to connect to spreedly and up to 64 secs for spreedly to connect to the gateway.
from spreedly.
Related Issues (15)
- setResponse doesn't set response status HOT 1
- Checkout form cannot be retrieved for 3D Secure transactions HOT 1
- ¿Work on Laravel 5.1? HOT 1
- Show gateway HOT 1
- Dont times * 100 on amount HOT 10
- Add support to complete 3DS 2 transactions HOT 3
- Issue with required version of Guzzle (4.0) HOT 2
- Question about Base Url HOT 5
- Allow to post data on complete 3DS 2 calls HOT 1
- Failed requests don't always throw exception HOT 1
- Missing capture method on transaction HOT 2
- Response wrapper methods throw exceptions inappropriately HOT 1
- general credit vs transactional dependent credit HOT 1
- credit expects cents not dollars.cents HOT 3
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 spreedly.