zf-fr / zfr-stripe Goto Github PK
View Code? Open in Web Editor NEWZfrStripe is a PHP library based on Guzzle for Stripe payment system
License: MIT License
ZfrStripe is a PHP library based on Guzzle for Stripe payment system
License: MIT License
I would love to get cracking with this lib, as it seems better structured than the native PHP SDK. One thing I am missing in the docs/examples is the use of access tokens for requests made on behalf of Connected users.
When using Connect in ZfrStripe, you are currently forced to save the access token and refresh token of the associated account, which leads to many tokens to secure.
Stripe now supports to pass a "stripe_account" parameter to all API calls (https://stripe.com/docs/connect/authentication), in addition of your own Stripe secret key (so there is only one secret key to secure).
Bonjour,
Est il possible de construire un formulaire de paiement sans passé par email ?
Merci
Hi,
I'd like to release a v2 of the library, with the following goals:
Hi,
I discovered that Guzzle converts boolean parameters as `for false and`1`for true, e.g.`at_period_end=1`for setting it to`true
with command execution.
I don't know if there are any other ways to handle this, but I think this can be fixed by adding extra command.before_send
listener:
$boolParams = array(
'capture',
'refund_application_fee',
'at_period_end',
'prorate',
'closed',
'verified',
);
$command = $event['command'];
$request = $command->getRequest();
foreach ($request->getQuery()->getKeys() as $key) {
if (in_array($key, $boolParams)) {
$request->getQuery()->set(
$key,
$request->getQuery()->get($key) === true ? 'true' : 'false'
);
}
}
Another option is to set those parameter types to string
in service description and assume that library user will provide valid "true"
or "false"
.
j'ai essayé d’intégré stripe stripe avec ZF2.
le problème comment je veux intégrer token et customer
ci-dessous mon code :
if(isset($_POST) && !empty($_POST)){
$token = $_POST['stripeToken'];
$client = new StripeClient('sk_test_ePj4j8ZGIRZM8PFQ3tkznV8y', '2015-10-16');
$details = $client->createCharge([
'amount' => 500,
'currency' => 'EUR',
'customer' => ?
]);
pr($details);die;
Merci.
}
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.