feat(connector): unified errorCode and errorMessage map error reason as errorMessage in Stripe Connector (#1797)

Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in>
Co-authored-by: swangi-kumari <swangi.12015941@lpu.in>
This commit is contained in:
Sahkal Poddar
2023-08-02 20:20:30 +05:30
committed by GitHub
parent 9977f9d40e
commit c464cc510d
3 changed files with 42 additions and 30 deletions

View File

@ -54,8 +54,7 @@ async fn should_fail_recurring_payment_due_to_authentication(
Event::Assert(Assert::IsPresent("man_")),// mandate id starting with man_
Event::Trigger(Trigger::Click(By::Css("#pm-mandate-btn a"))),
Event::Trigger(Trigger::Click(By::Id("card-submit-btn"))),
Event::Assert(Assert::IsPresent("authentication_required: Your card was declined. This transaction requires authentication.")),
Event::Assert(Assert::IsPresent("authentication_required: authentication_required")),
]).await?;
Ok(())
}