#james_api

1 messages ¡ Page 1 of 1 (latest)

shell perchBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1270251624379584543

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

safe kraken
#

$signRes = $stripe->terminal->readers->collectInputs(
$readerId,
[
'inputs' => [
[
'type' => 'signature',
'custom_text' => [
'title' => 'Signature',
'description' => 'Please sign for the payment authorization.',
'submit_button' => 'Submit',
'skip_button' => 'Skip',
],
'required' => true,
]]
]);

#

foudn error below

#

<b>Fatal error</b>: Uncaught Error: Call to undefined method Stripe\Service\Terminal\ReaderService::collectInputs() in

warm vessel
#

Have you included terminal_collect_inputs_beta header ?

safe kraken
#

how to do that please

warm vessel
safe kraken
#

Not yet

warm vessel
#

Then you should

safe kraken
#

so No payment signature we can take after payment?

#

is this only API we can use for afterpayment signature capture ?

warm vessel
#

Yes you need to use this feature to collect signature from your customer.

safe kraken
#

is this only way to capture the signature after payment ?

warm vessel
#

Yes

safe kraken
#

got it.

#

How to automatically add credit card surcharge

warm vessel
#

You mean the card processing fee?

safe kraken
#

correct

warm vessel
#

No you don't need to set it

safe kraken
#

I mean how to do that if we want to charge customer process fee

shell perchBOT
acoustic barn
#

you calculate the fee into the original amount charged to the customer. We don't have a formula for this so you need to calculate that out on your own