Skip to content

Commit

Permalink
fix: handle requires_customer_action and processing status for pix pa… (
Browse files Browse the repository at this point in the history
  • Loading branch information
vsrivatsa-edinburgh authored Jun 25, 2024
1 parent 33474fc commit a680e71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Payments/QRCodeDisplay.res
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ let make = () => {
let dict = json->JSON.Decode.object->Option.getOr(Dict.make())
let status = dict->getString("status", "")

if status === "succeeded" {
if (
status === "succeeded" || status === "requires_customer_action" || status === "processing"
) {
postSubmitResponse(~jsonData=json, ~url=return_url)
} else if status === "failed" {
postFailedSubmitResponse(
Expand Down

0 comments on commit a680e71

Please sign in to comment.