#mrdatabase
1 messages ยท Page 1 of 1 (latest)
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.
- mrdatabase, 1 day ago, 6 messages
๐
Can you show me your code where you are trying to call processPaymentIntent?
sure
I assume you are using the server driven SDK here?
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'],
]
);
What version of our PHP SDK are you using?
Hmm that isn't the latest but it is plenty recent that it should support processPaymentIntent
yeah, it's really confusing lmao
Hrmmm have you tried uninstalling and re-installing the SDK?
It feels to me almost like there as a bug somehow in your install
Hmmm
Is anyone else having this issue or just me?
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?
hold on, I think i found it
it's todo with my require_once($_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php');
Ah nice