feat(connector): [Stripe] Implement Przelewy24 bank redirect (#1111)

Co-authored-by: Jagan <jaganelavarasan@gmail.com>
This commit is contained in:
AkshayaFoiger
2023-05-15 14:52:53 +05:30
committed by GitHub
parent 60e8c7317a
commit 54ff02d9dd
6 changed files with 142 additions and 22 deletions

View File

@ -654,8 +654,11 @@ pub enum BankRedirectData {
issuer: api_enums::BankNames,
},
Przelewy24 {
// Shopper Email
email: Email,
//Issuer banks
bank_name: Option<api_enums::BankNames>,
// The billing details for bank redirect
billing_details: BankRedirectBilling,
},
Sofort {
/// The billing details for bank redirection
@ -692,7 +695,10 @@ pub struct SofortBilling {
pub struct BankRedirectBilling {
/// The name for which billing is issued
#[schema(value_type = String, example = "John Doe")]
pub billing_name: Secret<String>,
pub billing_name: Option<Secret<String>>,
/// The billing email for bank redirect
#[schema(value_type = String, example = "example@example.com")]
pub email: Email,
}
#[derive(serde::Deserialize, serde::Serialize, Debug, Clone, ToSchema, Eq, PartialEq)]