You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4d64cee
Browse filesBrowse the repository at this point in the historyBrowse files
assertEquals(retrievedCustomer.getSources().getData().size(), 2, "The Stripe Customer should have exactly 2 sources attached on the backend!");
401
+
assertEquals(retrievedCustomer.getSources().getData().size(), 1, "The new card from the token should be present in the Stripe Customer's sources list.");
402
+
// Verify the card ID saved in Kill Bill matches what's in Stripe's sources
assertEquals(retrievedCustomer.getSources().getData().get(0).getId(), secondMethodStripeId, "The card in Stripe sources should match the ID saved in Kill Bill.");
402
408
}
403
409
404
410
@Test(groups = "integration")
@@ -438,7 +444,9 @@ public void testAddSecondSourceToExistingCustomer() throws PaymentPluginApiExcep
assertEquals(retrievedCustomer.getSources().getData().size(), 2, "The Stripe Customer should have exactly 2 sources attached on the backend!");
447
+
assertEquals(retrievedCustomer.getSources().getData().size(), 1, "The new source should be present in the Stripe Customer's sources list.");
448
+
// Also verify it's specifically the source we attached, not just any source
449
+
assertEquals(retrievedCustomer.getSources().getData().get(0).getId(), stripeSource.getId(), "The attached source ID should match the one we passed in.");
0 commit comments