Skip to content

Commit

Permalink
Fix billie test
Browse files Browse the repository at this point in the history
  • Loading branch information
davidme-stripe committed Aug 5, 2024
1 parent e20c0d4 commit f828169
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Stripe/StripeiOSTests/STPPaymentIntentFunctionalTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ class STPPaymentIntentFunctionalTest: STPNetworkStubbingTestCase {
waitForExpectations(timeout: STPTestingNetworkRequestTimeout, handler: nil)
XCTAssertNotNil(clientSecret)

let client = STPAPIClient(publishableKey: STPTestingDefaultPublishableKey)
let client = STPAPIClient(publishableKey: STPTestingDEPublishableKey)
let expectation = self.expectation(description: "Payment Intent confirm")

let paymentIntentParams = STPPaymentIntentParams(clientSecret: clientSecret!)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ https:\/\/stp-mobile-ci-test-backend-e1b3\.stripedemos\.com\/create_payment_inte
text/html
Content-Type: text/html;charset=utf-8
Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
Set-Cookie: rack.session=pMIErzC8rWXOygKEfCBNVNsF2J7U4SdhMksrcXlAP2kHWZ3cg%2BKntxE93WV3KI9gwgnd2xmYcG41FOMYUWl7QvkY%2BTW05X4u%2BMYmlx8Q%2F37sKdOc8%2FkStUszIwYrBD3kv4ksVxPZ7b1lz4tkbQtbLHeqgudA%2FQ0hxwUIUcmtcvNrl4JVBsg6Am%2FP%2BdGzNwFIzagWGSJ9telN0M3mkeVVG5Dw6a%2BB2ShGzhrnXjXyThI%3D; path=/
Set-Cookie: rack.session=cOjIiWl7cRPpLLs37s7aDd78OI4dAkAvtjo70dzuTKu66wnT1veq26gKqQOEXQuqx%2BfKHvIxIMNcjvxrMowADdIqDkzzEAqvsZFHW%2B3tkoNRThR3FILA5qXUHOe%2FvaNmWYrb37OuYzeJ4KigiKk4mypqmfljL%2FMea3XzrFwZ%2B%2B%2BNkBbVy0eCJa0RRyiaOrFTGasS%2F%2Bw694%2B3HpdXXAIJchuYYQBCaoXJ1GMeYpjCJiU%3D; path=/
Server: Google Frontend
x-cloud-trace-context: 39512f477c3eba17fbb8a9c1ecaaca15;o=1
x-cloud-trace-context: 42c6f290f5c381456f8ea483a0a5795b
Via: 1.1 google
x-xss-protection: 1; mode=block
Date: Fri, 19 Jul 2024 22:35:31 GMT
Date: Mon, 05 Aug 2024 17:20:03 GMT
x-robots-tag: noindex, nofollow
Content-Length: 147
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN

{"intent":"pi_3PePOhKG6vc7r7YC1Pw6dbvN","secret":"pi_3PePOhKG6vc7r7YC1Pw6dbvN_secret_GxrAcmHUHALTePgjypUIyYIF4","status":"requires_payment_method"}
{"intent":"pi_3PkUZjAlz2yHYCNZ0bXjYgHZ","secret":"pi_3PkUZjAlz2yHYCNZ0bXjYgHZ_secret_uPEjiKrNcX5xLMFfatHnafE9X","status":"requires_payment_method"}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
POST
https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3PePOhKG6vc7r7YC1Pw6dbvN\/confirm$
https:\/\/api\.stripe\.com\/v1\/payment_intents\/pi_3PkUZjAlz2yHYCNZ0bXjYgHZ\/confirm$
200
application/json
access-control-allow-methods: GET,HEAD,PUT,PATCH,POST,DELETE
Expand All @@ -13,25 +13,26 @@ Access-Control-Allow-Origin: *
stripe-should-retry: false
x-stripe-priority-routing-enabled: true
report-to: {"group":"coop","max_age":8640,"endpoints":[{"url":"https://q.stripe.com/coop-report?s=payins-bapi-srv"}],"include_subdomains":true}
request-id: req_FKi7Xngm8zPmpJ
request-id: req_6sgom850DnMIAW
x-stripe-routing-context-priority-tier: api-testmode
Content-Length: 1041
Content-Length: 1043
Vary: Origin
Date: Fri, 19 Jul 2024 22:35:31 GMT
original-request: req_FKi7Xngm8zPmpJ
Date: Mon, 05 Aug 2024 17:20:05 GMT
original-request: req_6sgom850DnMIAW
stripe-version: 2020-08-27
idempotency-key: 41eaed3e-3020-4e5b-8af3-a1cb77610c35
idempotency-key: 9d057a9d-6f24-438c-8e8c-a0151ec517a5
access-control-expose-headers: Request-Id, Stripe-Manage-Version, Stripe-Should-Retry, X-Stripe-External-Auth-Required, X-Stripe-Privileged-Session-Required
access-control-max-age: 300
access-control-allow-credentials: true
Content-Type: application/json
x-content-type-options: nosniff
X-Stripe-Mock-Request: client_secret=pi_3PkUZjAlz2yHYCNZ0bXjYgHZ_secret_uPEjiKrNcX5xLMFfatHnafE9X&payment_method_data\[allow_redisplay]=unspecified&payment_method_data\[metadata]\[test_key]=test_value&payment_method_data\[payment_user_agent]=.*&payment_method_data\[type]=billie&return_url=example-app-scheme%3A\/\/unused

{
"payment_method_configuration_details" : null,
"canceled_at" : null,
"source" : null,
"amount" : 100000,
"amount" : 6000,
"capture_method" : "automatic",
"livemode" : false,
"shipping" : null,
Expand All @@ -45,12 +46,12 @@ x-content-type-options: nosniff
"type" : "redirect_to_url",
"redirect_to_url" : {
"return_url" : "example-app-scheme:\/\/unused",
"url" : "https:\/\/pm-redirects.stripe.com\/authorize\/acct_1JtgfQKG6vc7r7YC\/pa_nonce_QVQFmhrH5EjmjyIza73EDOIf6uaOxGp"
"url" : "https:\/\/pm-redirects.stripe.com\/authorize\/acct_1PSnNaAlz2yHYCNZ\/pa_nonce_Qbhz7dgG2lSnpWG3yORyWpTOgYb7qbF"
}
},
"payment_method" : "pm_1PePOhKG6vc7r7YCZ9xSlXwx",
"client_secret" : "pi_3PePOhKG6vc7r7YC1Pw6dbvN_secret_GxrAcmHUHALTePgjypUIyYIF4",
"id" : "pi_3PePOhKG6vc7r7YC1Pw6dbvN",
"payment_method" : "pm_1PkUZlAlz2yHYCNZPJq0JSDR",
"client_secret" : "pi_3PkUZjAlz2yHYCNZ0bXjYgHZ_secret_uPEjiKrNcX5xLMFfatHnafE9X",
"id" : "pi_3PkUZjAlz2yHYCNZ0bXjYgHZ",
"confirmation_method" : "automatic",
"amount_details" : {
"tip" : {
Expand All @@ -63,6 +64,6 @@ x-content-type-options: nosniff
"billie"
],
"setup_future_usage" : null,
"created" : 1721428531,
"created" : 1722878403,
"description" : null
}

0 comments on commit f828169

Please sign in to comment.