#deepakkumar_wizniche

1 messages ยท Page 1 of 1 (latest)

primal wadiBOT
olive marsh
#

Hi ๐Ÿ‘‹

quaint sluice
#

Hi

#

$paymentlink =$stripe->paymentLinks->create(
[
'line_items' => $data['description']
]
);

#

I am using php

olive marsh
quaint sluice
#

It doesn't request it

#

it gives error before I can make a request

olive marsh
quaint sluice
#

message
:
"Undefined property: Stripe\Service\CoreServiceFactory::$paymentLinks"
status_code
:
500

#

still same error

#

does paymentlink request plan/price>

#

?

olive marsh
#

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.

quaint sluice
#

let me see

olive marsh
#

does paymentlink request plan/price
yes payment links require a Price object

quaint sluice
#

what if I am using some product from my list

#

that won't work?

olive marsh
#

That product needs to have a Price record associated with it and you need to use that Price record ID

quaint sluice
#

ohh okay

#

Is there any other way, I can accept any sort of payment from the user ?

#

Accept using payment link?

olive marsh
#

You would need to create a Price object

#

It's pretty easy using the PHP library though

quaint sluice
#

Is there any way not to use the Plan or Price objecyt

olive marsh
#

No