Errors Processing Stripe Payments Issue

chloeis007
chloeis007
Offline
0
Hello,

I am unable to get payments running through stripe. The issue seems to have started in the last couple of weeks, possibly after the I did the last update. I've spent several hours trying to resolve it, reading through the forum and figure out what could be causing it as I am also having issues with the logo showing up on my PDF invoice.

- I have reinstalled the Invoice Manager component
- I have reinstalled the Stripe Plugin.
- I verified with stripe that all settings on my account are accurate and fucntional and that there were no outages on their side causing the error.
- I'm having my host verify there is not an issue on the server causing the problem.

Really not sure what to try next. You kind assistance would be most appreciated.
Thank you in advance,
C Anderson
Responses (2)
  • Accepted Answer

    chloeis007
    chloeis007
    Offline
    Wednesday, May 23 2018, 11:36 PM - #Permalink
    0
    I've had someone with much experience than myself look at it and was told the below. Can you assist me with the adjustment to the code?

    -------------->

    I've figured out what's going on here. As you're on a Cloud platform, you have IPv6 available. Naturally, the site's code is attempting to use IPv6 to connect to whatever it can. The problem? api.stripe.com doesn't have IPv6 set up.

    -----
    ;; QUESTION SECTION:
    ;api.stripe.com. IN AAAA

    ;; AUTHORITY SECTION:
    stripe.com. 771 IN SOA ns-1882.awsdns-43.co.uk. awsdns-hostmaster.amazon.com. 1 900 900 1209600 3600
    -----

    Sure enough, trying to run a ping6 (IPv6 version of ping) on api.stripe.com provides a very familiar error:

    -----
    # ping6 api.stripe.com
    ping: api.stripe.com: Name or service not known
    -----

    So, at this point, what needs to be done is find a way to force the code to connect to api.stripe.com without IPv6, or get Stripe to properly implement IPv6. Of the two, adjusting your code to avoid IPv6 for the api.stripe.com access is recommended.
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 24 2018, 10:22 AM - #Permalink
    0
    well.. that can be tricky. Not sure if the Stripe SDK allows to "force" IPv4.. this seems more like a configuration on your SERVER, rather than our extension.
    There should be a way (you should ask your hosting povider..) to tell the system to always use IPv4 when trying to connect to api.stripe.com...
    The reply is currently minimized Show
Your Reply