#mmunir-code

1 messages · Page 1 of 1 (latest)

crude iron
#

@trim hedge hello, please lets talk here

#

also, please don't paste pictures of your monitor, it isn't efficient to read through code

#

let's start here, please describe the problem you're seeing

#

and then we can help you debug

trim hedge
#

Sorry kind 9f new member

crude iron
#

that is ok!

trim hedge
#

I want the price to be the id = amount number but as i use $params->amount its not coming in php

crude iron
#

let's start here, what have you tried? talking dev to dev, how far does your code get, what is the value of the variable you want and what is not happening right?

#

to clarify, I cannot help you write your code, I can help you help yourself write code and debug it

trim hedge
#

I can proceed to checkout but the value is 20 dollar and before proceed8ng to checkput page i have input value where person can place donation amount

crude iron
#

I can proceed to checkout but the value is 20 dollar and before proceed8ng to checkput page i have input value where person can place donation amount
sure but what is happening in your code ?

what code paths are being hit?
what are you logging out to your console and what is not right?

#

let's start here

#

you have an input field

#

what is your code doing with the value/string entered in that input field?

#

and please don't paste code, rather read through your own code and tell me what it is doing

#

and once we know that, we can dig further

trim hedge
#

Ok i get i will place the code but when i replace 2000 with $params->amount, i get error

#

Console dosent show any error

#

It says price require an unit_amount

crude iron
#

again, please no screenshots for now

It says price require an unit_amount
what does that error mean?

it says you need to pass unit_amount but you are not

so why is your code not passing unit_amount parameter on CheckoutSession

trim hedge
#

It means it should be in number but variable amount how will it take specific amount

#

Anywhere where i can learn about it any reference what should i search to find that pwrticular method so i can learn

crude iron
#

but variable amount how will it take specific amount
your webpage will send it in an HTTP request to your server

are you familiar with how client-server communication works?

trim hedge
#

Not much but little, was following stripe variables php provided by stripe developer but pram is not working

crude iron
#

got it, Stripe integrations are very developer intensive and require experience with how client-server integrations are built and work

I unfortunately cannot teach/coach you to build a Stripe integration over a chat so my recommendation would be that you pair with a developer who is familiar with this and can help you code this and debug your integration.

trim hedge
#

Problem is stripe just recently started providing service in uae and many developer they say they can but at end tgey have said no we cant its new to us, already tried twice developer charge non refundable invoice

crude iron
#

I'm sorry to hear that! you could look for developers externally in other countries?

or leverage PaymentLinks or a Stripe Partner's integration as a "no code" way to integrate

building this integration will require lots of development experience as you're building client-side and server-side parts to your integration and debugging all parts of it and then deploying it etc so ideally a developer familiar with this helps you out

trim hedge
#

Cant trust any within ciuntry outsourcing is qyite hard