#mrdatabase

1 messages ยท Page 1 of 1 (latest)

hearty anvilBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

drowsy steppe
#

๐Ÿ‘‹

tepid stone
#

Hello

#

i'm not sure why I can't use the class

drowsy steppe
#

Can you show me your code where you are trying to call processPaymentIntent?

tepid stone
#

sure

drowsy steppe
#

I assume you are using the server driven SDK here?

tepid stone
#

yea

#

$payment_intent = $stripe->paymentIntents->create(
[
'currency' => 'gbp',
'payment_method_types' => ['card_present'],
'capture_method' => 'automatic',
'amount' => $order_data['total_cost'],
'metadata' => ['uoid' => $uoid, 'time_slot' => $timeslot],
]
);

#

but where I get an error is when I try to use ```
$stripe->terminal->readers->processPaymentIntent(
'tmr_FVGwvwlNuq4jHm',
[
'payment_intent' => $payment_intent['id'],
]
);

drowsy steppe
#

What version of our PHP SDK are you using?

tepid stone
#

"stripe/stripe-php": "^v10.21.0",

#

i've updated it to the latest version

drowsy steppe
#

Hmm that isn't the latest but it is plenty recent that it should support processPaymentIntent

tepid stone
#

yeah, it's really confusing lmao

drowsy steppe
#

Hrmmm have you tried uninstalling and re-installing the SDK?

#

It feels to me almost like there as a bug somehow in your install

tepid stone
#

just done that

#

via composer

#

and still nothing

drowsy steppe
#

Hmmm

tepid stone
#

Is anyone else having this issue or just me?

drowsy steppe
#

Have not heard of anyone else having this issue, no.

#

Have you tried to create a new isolated project that is barebones and call that SDK method from there?

tepid stone
#

hold on, I think i found it

#

it's todo with my require_once($_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php');

drowsy steppe
#

Ah nice

tepid stone
#

for some reason it allowed some classes and not others ๐Ÿค”

#

strange

#

thank you anyways dude ๐Ÿ˜Ž