Questions tagged [stripe-api-php]
7 questions
4
votes
2 answers
Can you pass a shipping address to Stripe Checkout in PHP?
I'm using Stripe Checkout API to direct a website user to make payment.
Is there a way to pass a shipping address to the hosted checkout page so it's gathered from the referrer rather then Stripe themselves?
function createSession()
{
require…

Daniel Few
- 43
- 3
1
vote
1 answer
Stripe API PHP partial refund doesnt work
I try do partial refund in stripe php but all time do full refund instead.
My code:
public static function createRefund($id,$refundAmount){
$refundAmount = $refundAmount * 100;
$refund = \Stripe\Refund::create([
…

sveta ivanova
- 11
- 2
1
vote
0 answers
Stripe payment intent search api throwing error
I am getting an error:call to undefined method stripe\paymentintent::search()
The code reference url is on search stripe payment intents using php library.
$stripe = new…

sridharnetha
- 2,104
- 8
- 35
- 69
0
votes
0 answers
Stripe API Keeps sending requests to Webhook end-point
My Stack:
laravel v10.14
PHP 8.2.7
Stripe API 2020-08-27
Laravel Cashier v14.7
spatie/laravel-stripe-webhooks 3.2
I have connected my Laravel application to Stripe via Cashier and by using the Spatie Webhook library, I am listening to some Stripe…

Salar
- 1
- 1
0
votes
2 answers
Stripe API - Can not retrieve products purchased from a pricing table using webhook or api
From the Stripe dashboard, I create some Products (standard pricing, one-time purchase), and then I create a Pricing Table that includes those products.
I then setup a webhook from Stripe to send the charge.succeeded event, the…

jsherk
- 6,128
- 8
- 51
- 83
0
votes
1 answer
Stripe Search API 400 Bad Request
I am trying to execute cURL in PHP to do a Stripe Subscription Search. But I am getting 400 Bad Request.
Here is my PHP script:
$ch = curl_init();
$created = 'created<' .…

sridharnetha
- 2,104
- 8
- 35
- 69
-1
votes
0 answers
Stripe PHP get ALL customers beyond 100 limit
How can I get more than 100 customers? How can I loop through all customers in Stripe using PHP? In short I am trying to get all the active customers who are subscribed. If I can access all customers in a loop I "may" be able to get all active…

Papa De Beau
- 3,744
- 18
- 79
- 137