guardian / support-frontend

💁‍♀ī¸â¤ī¸đŸ“° Frontend for the Supporter platform
https://support.theguardian.com/
26 stars 13 forks source link

One Time Checkout - Stripe payment #6273

Closed andrewHEguardian closed 2 months ago

andrewHEguardian commented 2 months ago

What are you doing in this PR?

Implementing the Stripe card payment functionality into the new one time checkout. Sends a request to the payment API endpoint contribute/one-off/stripe/create-payment.

Trello Card

Why are you doing this?

How to test

Go to https://support.thegulocal.com/au/one-time-checkout?product=SupporterPlus and select Credit/debit card. Fill in card details and press payment CTA.

The contribution should show up in

The form does not yet redirect to a thank you page.

Screenshots

image

github-actions[bot] commented 2 months ago

Deploy build 11037 of support::stripe-patrons-data to CODE

All deployment options - [Deploy build 11037 of `support::stripe-patrons-data` to CODE](https://riffraff.gutools.co.uk/deployment/deployAgain?project=support%3A%3Astripe-patrons-data&build=11037&stage=CODE&updateStrategy=MostlyHarmless&action=deploy) - [Deploy parts of build 11037 to CODE by previewing it first](https://riffraff.gutools.co.uk/preview/yaml?project=support%3A%3Astripe-patrons-data&build=11037&stage=CODE&updateStrategy=MostlyHarmless) - [What's on CODE right now?](https://riffraff.gutools.co.uk/deployment/history?projectName=support%3A%3Astripe-patrons-data&stage=CODE)

From guardian/actions-riff-raff.

github-actions[bot] commented 2 months ago

Size Change: +958 B (+0.04%)

Total Size: 2.25 MB

Filename Size Change
./public/compiled-assets/javascripts/[countryGroupId]/router.js 254 kB +958 B (+0.38%)
ℹī¸ View Unchanged | Filename | Size | | :--- | :---: | | `./public/compiled-assets/javascripts/[countryGroupId]/events/router.js` | 112 kB | | `./public/compiled-assets/javascripts/ausMomentMap.js` | 108 kB | | `./public/compiled-assets/javascripts/contributionsRedirectStyles.js` | 20 B | | `./public/compiled-assets/javascripts/digitalSubscriptionLandingPage.js` | 240 kB | | `./public/compiled-assets/javascripts/downForMaintenancePage.js` | 69.3 kB | | `./public/compiled-assets/javascripts/error404Page.js` | 69.3 kB | | `./public/compiled-assets/javascripts/error500Page.js` | 69.2 kB | | `./public/compiled-assets/javascripts/favicons.js` | 617 B | | `./public/compiled-assets/javascripts/paperSubscriptionCheckoutPage.js` | 194 kB | | `./public/compiled-assets/javascripts/paperSubscriptionLandingPage.js` | 86.1 kB | | `./public/compiled-assets/javascripts/payPalErrorPage.js` | 67.8 kB | | `./public/compiled-assets/javascripts/payPalErrorPageStyles.js` | 20 B | | `./public/compiled-assets/javascripts/promotionTerms.js` | 72.4 kB | | `./public/compiled-assets/javascripts/subscriptionsLandingPage.js` | 71.5 kB | | `./public/compiled-assets/javascripts/subscriptionsRedemptionPage.js` | 126 kB | | `./public/compiled-assets/javascripts/supporterPlusLandingPage.js` | 306 kB | | `./public/compiled-assets/javascripts/unsupportedBrowserStyles.js` | 20 B | | `./public/compiled-assets/javascripts/weeklySubscriptionCheckoutPage.js` | 191 kB | | `./public/compiled-assets/javascripts/weeklySubscriptionLandingPage.js` | 86 kB | | `./public/compiled-assets/webpack/136.js` | 2.17 kB | | `./public/compiled-assets/webpack/272.js` | 18.1 kB | | `./public/compiled-assets/webpack/344.js` | 2.04 kB | | `./public/compiled-assets/webpack/430.js` | 81.8 kB | | `./public/compiled-assets/webpack/841.js` | 19.8 kB |

compressed-size-action

github-actions[bot] commented 2 months ago

Deploy build 20301 of support:support-workers-mono to CODE

All deployment options - [Deploy build 20301 of `support:support-workers-mono` to CODE](https://riffraff.gutools.co.uk/deployment/deployAgain?project=support%3Asupport-workers-mono&build=20301&stage=CODE&updateStrategy=MostlyHarmless&action=deploy) - [Deploy parts of build 20301 to CODE by previewing it first](https://riffraff.gutools.co.uk/preview/yaml?project=support%3Asupport-workers-mono&build=20301&stage=CODE&updateStrategy=MostlyHarmless) - [What's on CODE right now?](https://riffraff.gutools.co.uk/deployment/history?projectName=support%3Asupport-workers-mono&stage=CODE)

From guardian/actions-riff-raff.

prout-bot commented 2 months ago

Seen on PROD (merged by @andrewHEguardian 10 minutes and 52 seconds ago)

Sentry Release: support-client-side, support