stripe / stripe-php

PHP library for the Stripe API.
https://stripe.com
MIT License
3.75k stars 848 forks source link

16.9.0-beta.1 availability in PHP SDK #1789

Open stAn47 opened 3 days ago

stAn47 commented 3 days ago

Is your feature request related to a problem? Please describe.

Hello, we are trying to implement "shipping rate requests by server" using this guide https://docs.stripe.com/payments/checkout/custom-shipping-options

while our backend API is PHP based.

When can we expect these features to be available with PHP SDK ?

We are mainly interested in providing "express" experience at product details with a single button for Apple/Google pay that would auto load the customer's address, address would be sent to the website for registration or order association (via the shipping address changed webhook), shipping rates calculation, possibly taxes and discount calcultions which would provide new order due amount at payment window.

Ideal solution in this matter is that server sends multiple shipping options (such as pick up in store = 0gbp or DPD next day = 10gbp and customer would still be able to pick up his prefered method )

There are thousands of shipping options at the store so we cannot use Stripe's standard shipping rates for the checkout APIs and we would welcome the webhooks for this purpose.

Thank you, best regards, Stan

Describe the solution you'd like

Please prefer most used webserver programming language (PHP) as first and node.js as secondary

Describe alternatives you've considered

Additional context

No response

jar-stripe commented 3 days ago

Hi @stAn47 , thanks for writing in! Let me do a bit of digging here, and I'll get back to you!

jar-stripe commented 3 days ago

@stAn47 : I did a bit of digging and it looks like these properties are available in the latest PHP beta (see e.g. https://github.com/stripe/stripe-php/blob/v16.3.0-beta.3/lib/Checkout/Session.php#L62). We don't have a step-by-step guide for PHP but if you can try and adapt the Node steps for that beta SDK, I think this should work for you. Can you give that a try?