#miststudent2011_91826
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
I'm no really familiar with Drupal and I'm not sure whether there's a plugin for Stripe or not
unfortunately this is not something we can help you with
Hi @pale cove Thanks for the response. I am atleast looking for a working official PHP example where I can just send amount and Order id to Stripe API, where all the payment is handled by stripe and succuss/ failture is sent back
https://github.com/bhanuzoom3/stripe-sample-code official examples doesnt work
this is not a Stripe official example
Please refer read me in the repo, I just uploaded to github for easier testing
refer master and stripe-youtube branches repo contains two differnt examples from two official sources
I'm not sure I understand what do you mean?
What I am tying to do is make https://stripe.com/docs/payments/quickstart?lang=php&platform=web&client=html work in my local
I'm not sure how to integrate it in Drupal though
but I am getting Refused to load the image 'data:image/png;base64,iVBORw0KGgo=' because it violates the following Content Security Policy directive: "img-src 'self'".
I'm not sure how to integrate it in Drupal though
That I can take care of. I just need working PHP example
The repo contains pure PHP code. Drupal is nowhere in the picture.
where is this error coming from exactly? what part of the code?
After card data is submitted , during response from stripe I am getting that error
where do you get it? in the browser console, in the PHP backend logs, somewhere else?
What exact line of code is the error associated with?
https://github.com/bhanuzoom3/stripe-sample-code/blob/master/README.md
Readme has reproducible steps. I am getting that error in browser console
sounds good. It's unlikely we'll find time to download/run the repo while also helping on Discord unfortunately so you could write a support ticket at https://support.stripe.com/?contact=true with the context and that repro and we'll have time that way. Or I can look later(like over an hour from now; depends how busy Discord is, sorry).
I wrote to support as well. But I haven't received any reply from them.
yeah sorry, it takes time
What would be the normal ETA for response form the support
not sure
anyway if you want to wait a while I'll look at the repo if you give me time
yeah sorry, it takes time
I get it. Atleast If I got any acknowledgement email I can assume someone will read email. But I got generic message stating the email is not actively monitored so thought to get help here.
anyway if you want to wait a while I'll look at the repo if you give me time
I will greatly appreciate if you can look into it later and respond to me
If I am able to make it workable. I can release the code under GPL for Drupal Integration
do I specifically have to install docker and this ddev thing or can I repro just with the php local server
php local server will be fine. But you might need to update domain names in the code if any present.
IIRC stripe requires https ? for local testing thats why I used this setup.
not for test mode no
so I tried it and it all works fine
all I changed was the keys, the currency to eur , and that return_url to localhost instead
after all it's just our exisitng sample code repo which works
did you click on paynow after entering card details ?
yes
what was the response
after clicking paynow
let me try again now. I can share you payment ID
I can reproduce error, location set to India
If you want I can share payment ID
well the problem seems more that you are using https urls when the page is hosted on localhost?
nope its http only. If you look into this image you can find that.
It has been reported earlier as well #dev-help message
so to be clear it all works fine and the payment succeeds it's just this message in the console you're concerned about?
I dont think it is succeeded as I can see status incomplete in stripe dashboard. ๐ฆ
ok well overall as I mentioned I suggest writing to https://support.stripe.com/?contact=true for help so we can dig in deeper and investigate things
you mentioned " I got generic message stating the email is not actively monitored" which probably means you wrote to an email address directly instead of raising a support ticket through the support site
I contacted the support as well on chat and they shared me ticket id
They told me wait till I get response from team for my earlier email
I am just waiting for thier response
I am not sure if you are stripe employee or just a random contributor. I really aprreciate you for taking your time to help me here
sounds good!