Skip to content
Snippets Groups Projects
Closed Wrong stripe public key when submitting payment from additional stripe processor via backend
  • View options
  • Wrong stripe public key when submitting payment from additional stripe processor via backend

  • View options
  • Closed Issue created by mpwoodward

    I have a site with two payment processors configured with the Stripe extension (latest version). One of the payment processors works, the other doesn't work from the admin side, but seems to work OK if I configure a contribution page to use the second payment processor.

    When I go to the admin and try to submit a CC contribution for a contact, I get taken to a 404 page: [my site]/wp-admin/action=add&cid=2&mode=live

    Here's the error in the CiviCRM logs: Dec 12 21:05:57 [debug] Stripe Payment Error: Payment Response: Type: invalid_request_error Code: resource_missing Message: No such token: [token here]

    And here's the error I see on the Stripe side when I try to run a contribution through the payment processor that isn't working: Request POST body { "description": "Matt Woodward (CiviCRM)", "card": "[token here]", "email": "[my email]", "metadata": { "civicrm_contact_id": "2" } }

    Response body { "error": { "code": "resource_missing", "doc_url": "https://stripe.com/docs/error-codes/resource-missing", "message": "No such token: [token here]", "param": "card", "type": "invalid_request_error" } }

    I've verified that the tokens are correct in the payment processor configuration, and just to reiterate it DOES seem to work and get routed to the correct Stripe account from a contribution page configured with the second payment processor. It just doesn't work from the admin.

    Happy to provide additional details if helpful. Thanks.

    Edited by mattwire

    Linked items ... 0

  • Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first
    Loading Loading Loading Loading Loading Loading Loading Loading Loading Loading