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.
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: 171093912825624 9864] 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 unknown" , /stripe. com/docs/ error-codes/ parameter- unknown", log_url" : "https:/ /dashboard. stripe. com/test/ logs/req_ xxxxx....", request_ error" _key": "d41d8cd98f00b2 04e9800998ecf84 27e",
{
"error": {
"code": "parameter_
"doc_url": "https:/
"message": "Received unknown parameter: -idempotency_key",
"param": "-idempotency_key",
"request_
"type": "invalid_
}
}
Request POST body
{
"currency": "usd",
"description": "User Database ID: xxxxxxx",
"-idempotency
"amount": "495"
}