#miststudent2011_91826

1 messages ยท Page 1 of 1 (latest)

icy atlasBOT
pale cove
#

๐Ÿ‘‹ 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

rigid quiver
# pale cove ๐Ÿ‘‹ happy to help

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

pale cove
#

this is not a Stripe official example

rigid quiver
#

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

pale cove
#

I'm not sure I understand what do you mean?

rigid quiver
pale cove
#

I'm not sure how to integrate it in Drupal though

rigid quiver
#

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.

pale cove
#

where is this error coming from exactly? what part of the code?

rigid quiver
#

After card data is submitted , during response from stripe I am getting that error

still stream
#

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?

rigid quiver
still stream
#

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).

rigid quiver
#

I wrote to support as well. But I haven't received any reply from them.

still stream
#

yeah sorry, it takes time

rigid quiver
#

What would be the normal ETA for response form the support

still stream
#

not sure

#

anyway if you want to wait a while I'll look at the repo if you give me time

rigid quiver
#

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

still stream
#

do I specifically have to install docker and this ddev thing or can I repro just with the php local server

rigid quiver
#

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.

still stream
#

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

rigid quiver
#

did you click on paynow after entering card details ?

still stream
#

yes

rigid quiver
#

what was the response

still stream
#

which response?

#

all the calls to the API succeeded and the Promise resolved

rigid quiver
#

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

still stream
#

well the problem seems more that you are using https urls when the page is hosted on localhost?

rigid quiver
#

nope its http only. If you look into this image you can find that.

still stream
#

so to be clear it all works fine and the payment succeeds it's just this message in the console you're concerned about?

rigid quiver
#

I dont think it is succeeded as I can see status incomplete in stripe dashboard. ๐Ÿ˜ฆ

still stream
#

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

rigid quiver
#

I contacted the support as well on chat and they shared me ticket id

still stream
#

sounds good?

#

not sure what you mean

rigid quiver
#

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

still stream
#

sounds good!