Comments (5)
@tiagocaus This looks like an integration support better directed at our support team for 1:1 help instead. You can contact them here: https://support.stripe.com/contact
To unblock you, what you want is the pi_123
which is the PaymentIntent id and then later listen to the payment_intent.succeeded
Event which indicates when the payment did succeed.
from stripe-php.
When a charge is created, there is no such thing as pi_***
. Only one appears: Stripe\Checkout\Session JSON: {"id": "cs_test_a19YeWg0JtjVE8z....
but this ID is not the same when the payment is completed.
$checkout_session = $stripe->checkout->sessions->create([
'customer_email' => '[email protected]',
'metadata' => [
'pedido_id' => "ABC123",
],
'line_items' => [
[
'price_data' => [
'currency' => 'brl',
'product_data' => [
'name' => 'T-shirt',
],
'unit_amount' => 2007,
],
'quantity' => 1,
]
],
'mode' => 'payment',
'success_url' => SISTEMA['painel'] . '/app/Modules/pagamentos/stripe/sucesso.php',
'cancel_url' => SISTEMA['painel'] . '/app/Modules/pagamentos/stripe/cancelado.php',
]);
$rs = $mysqli->prepare("INSERT INTO financeiro_logs (IDx, retorno_webhook) VALUES (?,?) ");
$rs->bind_param('ss', $IDx, $checkout_session);
$rs->execute();
header("HTTP/1.1 303 See Other");
header("Location: " . $checkout_session->url);
from stripe-php.
@tiagocaus Sorry you had never mentioned using Checkout in your original question. The docs https://docs.stripe.com/payments/checkout/fulfill-orders cover this in a lot of details and tell you how to handle fulfillment exactly.
Please work with our support team for 1:1 help instead of here: https://support.stripe.com/contact
from stripe-php.
@remi-stripe I've already tried talking to support. They can't help. This would be easily resolved if stripe adopted the standard of creating a unique ID, from the beginning to the end of the process! Why don't they do that?
from stripe-php.
@tiagocaus I'm sorry but this is exactly what the doc I linked you to explains in a lot of details. Please work with our support team for 1:1 help as you are asking for integration support.
from stripe-php.
Related Issues (20)
- Add PaymentMethodeOrder to stripe checkout? HOT 5
- Add PaymentIntent object to CardException where applicable HOT 2
- Received unknown parameter: client_id when creating account link HOT 1
- Payment Method Domain class throwing Fatal error HOT 1
- [Bug] update "Prices" error HOT 2
- `Stripe\Tax\Settings::update` requires an ID to be passed HOT 2
- Fatal Error in payment method detach action HOT 1
- Stripe do not follow rfc6749 OAuth 2 specification in case of rejection by user HOT 1
- Php Webhook issue HOT 1
- @throws missing from autoPagingIterator() HOT 3
- Make Guest Customers show up in API search results, or add a separate end-point for them HOT 1
- Stripe Checkout session for Subscription update rather than a new Subscription HOT 3
- Charge failure returns no decline code HOT 11
- Validation of payload in Webhook::constructEvent is too sensitive HOT 1
- Unknown Error Message Return type of Stripe\StripeObject::offsetExists($k) HOT 2
- Support for new address validation features HOT 1
- Allow using both: allow_promotion_codes and discounts HOT 1
- PHP 8.0 incompatibilities:
- Incomplete OpenAPI spec for price (maybe others ?)
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 stripe-php.