Comment 4 for bug 2057948

Revision history for this message
Michele Morgan (mmorgan) wrote :

Thanks for working on this, Ken!

I've tested the patch with testing keys set up in the credit.processor.stripe.pubkey and credit.processor.stripe.secretkey library settings. Unfortunately, I'm getting an error when I attempt to pay a charge while logged into the opac:

We are unable to process credit card payments at this time. We apologize for the inconvenience. Please contact the library for further assistance.

Evergreen logs show the following:

[2024-03-20 08:57:22] /usr/sbin/apache2 [ERR :2562498:Account.pm:2382:1710939128256249864] Error initializing Stripe: $VAR1 = {'message' => 'Received unknown parameter: -idempotency_key','param' => '-idempotency_key','type' => 'invalid_request_error','code' => 'parameter_unknown','doc_url' => 'https://stripe.com/docs/error-codes/parameter-unknown','request_log_url' => 'https://dashboard.stripe.com/test/logs/req_sUuehM0Re3UX60?t=1710939442'};

On the Stripe side, logs show the following (redacted):

Response body
{
  "error": {
    "code": "parameter_unknown",
    "doc_url": "https://stripe.com/docs/error-codes/parameter-unknown",
    "message": "Received unknown parameter: -idempotency_key",
    "param": "-idempotency_key",
    "request_log_url": "https://dashboard.stripe.com/test/logs/req_xxxxx....",
    "type": "invalid_request_error"
  }
}
Request POST body
{
  "currency": "usd",
  "description": "User Database ID: xxxxxxx",
  "-idempotency_key": "d41d8cd98f00b204e9800998ecf8427e",
  "amount": "495"
}