Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,6 @@
import XCTest

class PaymentSheetStandardLPMUIOneTests: PaymentSheetStandardLPMUICase {
// UPI is a little custom and isn't well-tested by PaymentSheetLPMConfirmFlowTests
// Disabled due to flakiness: ir-chance-fuse
func _testUPIPaymentMethod() throws {
var settings = PaymentSheetTestPlaygroundSettings.defaultValues()
settings.layout = .horizontal
settings.customerMode = .new
settings.merchantCountryCode = .IN
settings.currency = .inr
settings.apmsEnabled = .off
loadPlayground(app, settings)

app.buttons["Present PaymentSheet"].waitForExistenceAndTap()
XCTAssertTrue(app.buttons["Pay ₹50.99"].waitForExistence(timeout: 5))

let payButton = app.buttons["Pay ₹50.99"]
tapPaymentMethod("UPI")

XCTAssertFalse(payButton.isEnabled)
// Test invalid VPA
let upi_id = app.textFields["UPI ID"]
upi_id.tap()
upi_id.typeText("payment.success" + XCUIKeyboardKey.return.rawValue)
XCTAssertFalse(payButton.isEnabled)

// Test valid VPA
upi_id.tap()
upi_id.typeText(String(repeating: XCUIKeyboardKey.delete.rawValue, count: "payment.success".count))
upi_id.typeText("payment.success@stripeupi" + XCUIKeyboardKey.return.rawValue)
payButton.tap()
XCTAssertTrue(app.staticTexts["Success!"].waitForExistence(timeout: 10.0))
}

// This Cash App test is a good way to test the cancellation/success behavior
// of the refresh endpoint E2E.
func testRefreshEndpointUsingCashAppPay() throws {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,44 +398,6 @@ class PaymentSheetStandardUITests: PaymentSheetUITestCase {
XCTAssertNotNil(successText.label.range(of: "Success!"))
}

// Disabled due to flakiness: ir-chance-fuse
func _testUPIPaymentMethodPolling() throws {
var settings = PaymentSheetTestPlaygroundSettings.defaultValues()
settings.layout = .horizontal
settings.customerMode = .new
settings.customerKeyType = .legacy
settings.merchantCountryCode = .IN
settings.currency = .inr
settings.apmsEnabled = .off
loadPlayground(app, settings)

app.buttons["Present PaymentSheet"].tap()

let payButton = app.buttons["Pay ₹50.99"]
XCTAssertTrue(payButton.waitForExistence(timeout: 10))
guard let upi = scroll(collectionView: app.collectionViews.firstMatch, toFindCellWithId: "UPI") else {
XCTFail()
return
}
upi.tap()

XCTAssertFalse(payButton.isEnabled)
let upi_id = app.textFields["UPI ID"]
upi_id.tap()
upi_id.typeText("payment.pending@stripeupi")
upi_id.typeText(XCUIKeyboardKey.return.rawValue)

payButton.tap()

let approvePaymentText = app.staticTexts["Approve payment"]
XCTAssertTrue(approvePaymentText.waitForExistence(timeout: 10.0))

// UPI Specific CTA
let predicate = NSPredicate(format: "label BEGINSWITH 'Open your UPI app to approve your payment within'")
let upiCTAText = XCUIApplication().staticTexts.element(matching: predicate)
XCTAssertTrue(upiCTAText.waitForExistence(timeout: 10.0))
}

func testBLIKPaymentMethodPolling() throws {
var settings = PaymentSheetTestPlaygroundSettings.defaultValues()
settings.layout = .horizontal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class STPPaymentMethodNetBankingParamsTests: STPNetworkStubbingTestCase {
XCTAssertEqual(paymentMethod?.type, .netBanking, "Incorrect PaymentMethod type")
// Billing Details
XCTAssertEqual(paymentMethod?.billingDetails!.name, "Jenny Rosen")
// UPI Details
// NetBanking Details
XCTAssertNotNil(paymentMethod?.netBanking, "Missing NetBanking")
XCTAssertEqual(paymentMethod?.netBanking!.bank, "icici")
}
Expand Down
52 changes: 0 additions & 52 deletions Stripe/StripeiOSTests/STPPaymentMethodUPIParamsTests.swift

This file was deleted.

45 changes: 0 additions & 45 deletions Stripe/StripeiOSTests/STPPaymentMethodUPITests.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ extension EmbeddedComponentManager {
case threeDSecure2
case threeDSecure2Eap
case twint
case upi
case usBankAccount
case visaCheckout
case wechat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Платете сега или платете по-късно чрез Klarna";

"Buy using a UPI ID" = "Купуване с помощта на UPI ID";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Потвърждавайки плащането си в PayPal, разрешавате на %@ да таксува Вашия PayPal акаунт при бъдещи плащания съгласно условията му.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Искам да видя повече информация.";

"Open your UPI app to approve your payment within %@" = "Отворете Вашето UPI приложение, за да одобрите плащане си в рамките на %@";

"Or" = "Или";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Compra ara o paga més endavant amb Klarna";

"Buy using a UPI ID" = "Compra amb un ID d'UPI";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Si confirmeu el pagament amb PayPal, permeteu que %@ faci càrrecs al vostre compte de PayPal per a pagaments en el futur d'acord amb les seves condicions.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Obre per a veure més informació.";

"Open your UPI app to approve your payment within %@" = "Obriu l'aplicació UPI per aprovar el pagament en un termini de %@";

"Or" = "O";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Koupit nyní nebo zaplatit pomocí Klarna";

"Buy using a UPI ID" = "Koupit pomocí UPI ID";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Potvrzením platby prostřednictvím služby PayPal povolujete, aby společnost %@ účtovala z vašeho účtu PayPal budoucí platby v souladu s jejich podmínkami.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Otevřete pro více informací.";

"Open your UPI app to approve your payment within %@" = "Otevřete aplikaci UPI, abyste mohli platbu schválit do %@";

"Or" = "Nebo";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Køb nu eller betal senere med Klarna";

"Buy using a UPI ID" = "Køb ved hjælp af et UPI ID";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Ved at bekræfte din betaling med PayPal, tillader du %@ at debitere din PayPal-konto for fremtidige betalinger i overensstemmelse med deres vilkår.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Åbn for at se flere oplysninger.";

"Open your UPI app to approve your payment within %@" = "Åbn din UPI-app for at godkende din betaling i %@";

"Or" = "Eller";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Jetzt kaufen oder später bezahlen mit Klarna";

"Buy using a UPI ID" = "Per UPI-ID kaufen";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Indem Sie Ihre Zahlung bei PayPal bestätigen, erklären Sie sich damit einverstanden, dass %@ Ihr PayPal-Konto zur Durchführung zukünftiger Zahlungen gemäß der Nutzungsbedingungen belastet.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Für weitere Informationen bitte öffnen.";

"Open your UPI app to approve your payment within %@" = "Öffnen Sie Ihre UPI-App, um die Zahlung per %@ zu genehmigen.";

"Or" = "Oder";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Αγορά τώρα ή πληρωμή αργότερα με Klarna";

"Buy using a UPI ID" = "Αγορά με χρήση αναγνωριστικού UPI";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Με την επιβεβαίωση της πληρωμής σας μέσω PayPal, επιτρέπετε στην %@ να χρεώσει τον λογαριασμό σας PayPal για μελλοντικές πληρωμές σύμφωνα με τους όρους της.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Ανοίξτε για να δείτε περισσότερες πληροφορίες.";

"Open your UPI app to approve your payment within %@" = "Ανοίξτε την εφαρμογή UPI για να εγκρίνετε την πληρωμή σας σε %@";

"Or" = "Ή";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Buy now or pay later with Klarna";

"Buy using a UPI ID" = "Buy using a UPI ID";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Open to see more information.";

"Open your UPI app to approve your payment within %@" = "Open your UPI app to approve your payment within %@";

"Or" = "Or";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@
/* Promotional text for Klarna, displayed in a button that lets the customer pay with Klarna */
"Buy now or pay later with Klarna" = "Buy now or pay later with Klarna";

/* Header text shown above a UPI ID text field */
"Buy using a UPI ID" = "Buy using a UPI ID";

/* Paypal mandate text */
"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms.";
Expand Down Expand Up @@ -280,8 +278,6 @@ to be saved and used in future checkout sessions. */
/* Accessibility hint to tell the user that they can open a form sheet with more information. */
"Open to see more information." = "Open to see more information.";

/* Countdown timer text on a screen asking the user to approve a payment */
"Open your UPI app to approve your payment within %@" = "Open your UPI app to approve your payment within %@";

/* Separator label between two options */
"Or" = "Or";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Compra ahora o paga después con Klarna";

"Buy using a UPI ID" = "Comprar con un ID de UPI";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Si confirmas tu pago con PayPal, permitirás que %@ efectúe cargos de pagos futuros en tu cuenta de PayPal conforme a las condiciones estipuladas.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Abrir para ver más información.";

"Open your UPI app to approve your payment within %@" = "Abre tu aplicación UPI para aprobar tu pago en el plazo de %@";

"Or" = "O";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Compra ahora y paga después con Klarna";

"Buy using a UPI ID" = "Comprar con un ID de UPI";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Si confirmas tu pago con PayPal, permitirás que %@ efectúe cargos de pagos futuros en tu cuenta de PayPal conforme a las condiciones estipuladas.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Abrir para obtener más información.";

"Open your UPI app to approve your payment within %@" = "Abre tu aplicación UPI para aprobar tu pago en el plazo de %@";

"Or" = "O";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Ostke nüüd või makske hiljem Klarnaga";

"Buy using a UPI ID" = "UPI ID abil ostmine";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "PayPaliga makset kinnitades lubate %@-l võtta teie PayPali kontolt tulevaste maksete eest tasu vastavalt nende tingimustele.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Ava, et näha rohkem teavet.";

"Open your UPI app to approve your payment within %@" = "Makse kinnitamiseks avage oma UPI rakendus %@ jooksul";

"Or" = "Või";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

"Buy now or pay later with Klarna" = "Osta nyt tai maksa myöhemmin Klarnalla";

"Buy using a UPI ID" = "Osta käyttämällä UPI-tunnusta";

"By confirming your payment with PayPal, you allow %@ to charge your PayPal account for future payments in accordance with their terms." = "Vahvistamalla maksusi PayPalin kanssa valtuutat %@ veloittamaan tulevia maksuja PayPal-tililtäsi heidän ehtojensa mukaisesti.";

Expand Down Expand Up @@ -182,7 +181,6 @@

"Open to see more information." = "Avaa nähdäksesi lisätietoja.";

"Open your UPI app to approve your payment within %@" = "Avaa UPI-sovellus ja hyväksy maksu kohteessa %@";

"Or" = "Tai";

Expand Down
Loading
Loading