• Resolved sen1975

    (@sen1975)


    Hi Nicolas,

    Great plugin and thank you for your time developing it!

    I wondered if I ask for a little help? I have added the button and setup it seems correctly. On testing, I get the green tick mark but the page forever hangs on “Processing”. I have read through some other questions and done what you have said:

    1. Created a product, within that created a pricing plan. The ID of that pricing plan I have entered into “amount”.
    2. In Stripe, I am looking at the logs and a token is created but the payment itself is never processed.
    3. I am in test mode on both Stripe and Direct Stripe.
    4. I have checked test API keys and they are correct, I have also entered live API Keys.

    The log file in stripe reads:

    “id”: “tok_1DICDjECQaWPNliio5zKLDxD”,
    “object”: “token”,
    “card”: {
    “id”: “card_1DICDiECQaWPNliii5hP5SvB”,
    “object”: “card”,
    “address_city”: null,
    “address_country”: null,
    “address_line1”: null,
    “address_line1_check”: null,
    “address_line2”: null,
    “address_state”: null,
    “address_zip”: null,
    “address_zip_check”: null,
    “brand”: “Visa”,
    “country”: “US”,
    “cvc_check”: “pass”,
    “dynamic_last4”: null,
    “exp_month”: 10,
    “exp_year”: 2020,
    “funding”: “credit”,
    “last4”: “4242”,
    “metadata”: {
    },
    “name”: “i have removed”,
    “tokenization_method”: null
    },
    “client_ip”: “185.171.106.135”,
    “created”: 1538818631,
    “email”: “i have removed “,
    “livemode”: false,
    “type”: “card”,
    “used”: false

    Would you have any idea what I might be able to do to push the actual payment after token has been created?

    Thank you again for your time.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @sen1975,

    Thank you for using Direct Stripe.

    Also thank you for the details you share in the message, that helps.

    Could you also share the message that comes in the paragraph just below the log you shared from the Stripe dashboard please ?

    In development -> logs , there should be an error code and a message.

    If you don’t find any message, could you text again with the browser’s console open ? And share any error that would appear in it please ?

    And last, in your setup description it’s not mentioned so just also to make sure you did assign the subscription type to your button in it’s settings, (it’s the first setting).

    I hope this will help,

    Best wishes,

    Nicolas

    Thread Starter sen1975

    (@sen1975)

    Thank you Nicolas,

    There is no error code in Stripe.The last line is: β€œused”: false.

    Using Chrome Console, I have the following. I am not sure if this may shed any light πŸ™‚

    Thank you again for your help, it is much appreciated.

    JQMIGRATE: Migrate is installed, version 1.4.1
    filamentapp.s3.amazonaws.com/5709bf9247664a0a829a9ccc333431cf.js:1 Failed to load resource: the server responded with a status of 403 (Forbidden)
    www.navilytics.com/nls.js:1 Failed to load resource: net::ERR_CERT_DATE_INVALID
    chrome-extension://hclhpnhohpmlbadmeieecaandnglfodm/:1 Refused to frame 'https://cdn.ritekit.com/' because it violates the following Content Security Policy directive: "frame-src 'self' stripecheckout: bitcoin: https://*.stripecdn.com https://js.stripe.com".
    
    chrome-extension://hclhpnhohpmlbadmeieecaandnglfodm/:1 Refused to frame 'https://cdn.ritekit.com/' because it violates the following Content Security Policy directive: "frame-src https://www.google.com".
    
    chrome-extension://hclhpnhohpmlbadmeieecaandnglfodm/:1 Refused to frame 'https://cdn.ritekit.com/' because it violates the following Content Security Policy directive: "frame-src 'self' https://js.stripe.com".
    
    webui.js:11 GET https://d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/paymentTypes/PAYMENT_TYPE_MASTERCARD.png net::ERR_NAME_NOT_RESOLVED
    o @ webui.js:11
    setup @ webui.js:11
    onrender @ webui.js:10
    onrender @ webui.js:12
    a @ webui.js:6
    i @ webui.js:5
    t.fire @ webui.js:5
    (anonymous) @ webui.js:7
    o @ webui.js:5
    end @ webui.js:5
    (anonymous) @ webui.js:7
    c @ webui.js:10
    c @ webui.js:10
    l @ webui.js:15
    e.emit @ webui.js:4
    onMessage @ webui.js:11
    (anonymous) @ webui.js:11
    EventImpl.dispatchToListener @ extensions::event_bindings:403
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    EventImpl.dispatch_ @ extensions::event_bindings:387
    EventImpl.dispatch @ extensions::event_bindings:409
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    dispatchOnMessage @ extensions::messaging:392
    d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/banks/bank_GB-LLOYDS_white.png:1 GET https://d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/banks/bank_GB-LLOYDS_white.png net::ERR_NAME_NOT_RESOLVED
    Image (async)
    (anonymous) @ webui.js:7
    c @ webui.js:10
    c @ webui.js:10
    l @ webui.js:15
    e.emit @ webui.js:4
    onMessage @ webui.js:11
    (anonymous) @ webui.js:11
    EventImpl.dispatchToListener @ extensions::event_bindings:403
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    EventImpl.dispatch_ @ extensions::event_bindings:387
    EventImpl.dispatch @ extensions::event_bindings:409
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    dispatchOnMessage @ extensions::messaging:392
    webui.js:11 GET https://d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/paymentTypes/PAYMENT_TYPE_MASTERCARD.png net::ERR_NAME_NOT_RESOLVED
    o @ webui.js:11
    setup @ webui.js:11
    onrender @ webui.js:10
    onrender @ webui.js:12
    a @ webui.js:6
    i @ webui.js:5
    t.fire @ webui.js:5
    (anonymous) @ webui.js:7
    o @ webui.js:5
    end @ webui.js:5
    (anonymous) @ webui.js:7
    c @ webui.js:10
    c @ webui.js:10
    l @ webui.js:15
    e.emit @ webui.js:4
    onMessage @ webui.js:11
    (anonymous) @ webui.js:11
    EventImpl.dispatchToListener @ extensions::event_bindings:403
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    EventImpl.dispatch_ @ extensions::event_bindings:387
    EventImpl.dispatch @ extensions::event_bindings:409
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    dispatchOnMessage @ extensions::messaging:392
    d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/banks/bank_GB-LLOYDS_white.png:1 GET https://d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/banks/bank_GB-LLOYDS_white.png net::ERR_NAME_NOT_RESOLVED
    Image (async)
    (anonymous) @ webui.js:7
    c @ webui.js:10
    c @ webui.js:10
    l @ webui.js:15
    e.emit @ webui.js:4
    onMessage @ webui.js:11
    (anonymous) @ webui.js:11
    EventImpl.dispatchToListener @ extensions::event_bindings:403
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    EventImpl.dispatch_ @ extensions::event_bindings:387
    EventImpl.dispatch @ extensions::event_bindings:409
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    dispatchOnMessage @ extensions::messaging:392
    webui.js:11 GET https://d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/paymentTypes/PAYMENT_TYPE_MASTERCARD.png net::ERR_NAME_NOT_RESOLVED
    o @ webui.js:11
    setup @ webui.js:11
    onrender @ webui.js:10
    onrender @ webui.js:12
    a @ webui.js:6
    i @ webui.js:5
    t.fire @ webui.js:5
    (anonymous) @ webui.js:7
    o @ webui.js:5
    end @ webui.js:5
    (anonymous) @ webui.js:7
    c @ webui.js:10
    c @ webui.js:10
    l @ webui.js:15
    e.emit @ webui.js:4
    onMessage @ webui.js:11
    (anonymous) @ webui.js:11
    EventImpl.dispatchToListener @ extensions::event_bindings:403
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    EventImpl.dispatch_ @ extensions::event_bindings:387
    EventImpl.dispatch @ extensions::event_bindings:409
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    dispatchOnMessage @ extensions::messaging:392
    d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/banks/bank_GB-LLOYDS_white.png:1 GET https://d34nsereb2h0yk.cloudfront.net/fancy-webcards/payments/banks/bank_GB-LLOYDS_white.png net::ERR_NAME_NOT_RESOLVED
    Image (async)
    (anonymous) @ webui.js:7
    c @ webui.js:10
    c @ webui.js:10
    l @ webui.js:15
    e.emit @ webui.js:4
    onMessage @ webui.js:11
    (anonymous) @ webui.js:11
    EventImpl.dispatchToListener @ extensions::event_bindings:403
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    EventImpl.dispatch_ @ extensions::event_bindings:387
    EventImpl.dispatch @ extensions::event_bindings:409
    publicClassPrototype.(anonymous function) @ extensions::utils:138
    dispatchOnMessage @ extensions::messaging:392
    jquery.js?ver=1.12.4:4 POST https://www.abtslogistics.co.uk/wp-admin/admin-ajax.php 500
    send @ jquery.js?ver=1.12.4:4
    ajax @ jquery.js?ver=1.12.4:4
    n.(anonymous function) @ jquery.js?ver=1.12.4:4
    token @ main.min.js?ver=4.9.8:1
    TokenCallback.trigger @ checkout.js?ver=4.9.8:3
    (anonymous) @ checkout.js?ver=4.9.8:3
    (anonymous) @ checkout.js?ver=4.9.8:3
    IframeView.closed @ checkout.js?ver=4.9.8:3
    (anonymous) @ checkout.js?ver=4.9.8:3
    RPC.processMessage @ checkout.js?ver=4.9.8:2
    (anonymous) @ checkout.js?ver=4.9.8:2
    RPC.message @ checkout.js?ver=4.9.8:2
    (anonymous) @ checkout.js?ver=4.9.8:2
    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @sen1975,

    Thans for the details.

    Do you have any log with a code other than 200 ? You can see that number in the logs list in the status column.

    I’m not sure if the console log messages are directly related, could run tests with all other plugins deactivated and switching to default twentseventeen theme ?

    Did you try from another browser ?

    I hope this will help.

    Best wishes,

    Nicolas

    Thread Starter sen1975

    (@sen1975)

    Thank you Nicolas,

    The only other log I can find is the Direct Stripe Log:

    Add New Direct Stripe log
    Toggle panel: Publish
    Status: Draft Edit Edit status
    Visibility: Public Edit Edit visibility
    Publish immediately Edit Edit date and time
    Toggle panel: Main logs data

    Warning: include_once(__DIR__/includes/display-main-logs-data.php) [function.include-once]: failed to open stream: No such file or directory in /home/www/abtslogistics.co.uk/wp-content/plugins/direct-stripe/controllers/class-ds-cpt.php on line 176

    Warning: include_once() [function.include]: Failed opening ‘__DIR__/includes/display-main-logs-data.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/www/abtslogistics.co.uk/wp-content/plugins/direct-stripe/controllers/class-ds-cpt.php on line 176
    Toggle panel: Billing and shipping data

    Warning: include_once(__DIR__/includes/display-bs-logs-data.php) [function.include-once]: failed to open stream: No such file or directory in /home/www/abtslogistics.co.uk/wp-content/plugins/direct-stripe/controllers/class-ds-cpt.php on line 180

    Warning: include_once() [function.include]: Failed opening ‘__DIR__/includes/display-bs-logs-data.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/www/abtslogistics.co.uk/wp-content/plugins/direct-stripe/controllers/class-ds-cpt.php on line 180

    Would this add any light? Thank you again for your time.

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hello @sen1975,

    Thanks for the details.

    Could you delete and install Direct Stripe again ? It seems like something went wrong during the previous install.

    Best wishes,

    Nicolas

    Plugin Author Nicolas Figueira

    (@nahuelmahe)

    Hi @sen1975,

    I’m closing this, let me know if you need anymore help.

    Best wishes,

    Nicolas

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Subscription Button Help’ is closed to new replies.