#deepakkumar_wizniche
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Hi
$paymentlink =$stripe->paymentLinks->create(
[
'line_items' => $data['description']
]
);
I am using php
Can you share the request ID for the API request?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Well from your snippet it looks like you are missing the quantity parameter. You can see what is required here: https://stripe.com/docs/api/payment_links/payment_links/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
message
:
"Undefined property: Stripe\Service\CoreServiceFactory::$paymentLinks"
status_code
:
500
still same error
does paymentlink request plan/price>
?
That error message doesn't tell me anything except that your request is failing validation. If you received a 500 there should be a log of it in your Stripe Account. If you can find that it will help me trouble shoot this.
let me see
does paymentlink request plan/price
yes payment links require a Price object
That product needs to have a Price record associated with it and you need to use that Price record ID
ohh okay
Is there any other way, I can accept any sort of payment from the user ?
Accept using payment link?
You would need to create a Price object
It's pretty easy using the PHP library though
Is there any way not to use the Plan or Price objecyt
No