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
This example showcases how to implement **Elastic Path payment gateway processing** with **Elastic Path Commerce Cloud** in a Single-Page Application (SPA) written in React. It builds on the `spa-guest-checkout` example, although omits a number of its features.
4
4
5
-
> **Heads-up:** This project focuses **exclusively** on Elastic Path payment processing workflows. It creates minimal test orders solely to demonstrate payment handling—cart management, product catalogs, customer accounts, etc. are kept deliberately simple and are not the focus.
5
+
> **Heads-up:** This project focuses **exclusively** on Elastic Path payment processing workflows using **Stripe**. It creates minimal test orders solely to demonstrate payment handling—cart management, product catalogs, customer accounts, etc. are kept deliberately simple and are not the focus.
6
6
7
7
Key capabilities demonstrated:
8
8
9
9
1.**Test Order Creation** – automatically creates incomplete orders with test products for payment processing demonstration.
10
-
2.**Elastic Path Payment Gateway** – processes payments using Elastic Path's payment gateway for scenarios like:
10
+
2.**Elastic Path Payment Gateway** – processes payments using Elastic Path's payment gateway powered by Stripe for scenarios like:
11
11
• Credit card payments
12
-
• Digital wallet payments
12
+
• Digital wallet payments (Apple Pay, Google Pay)
13
13
• Alternative payment methods
14
-
• Custom payment workflows
14
+
• Secure payment processing
15
15
3.**Order State Management** – converts incomplete orders to complete orders after Elastic Path payment processing.
16
16
4.**Payment Status Tracking** – displays real-time order and payment status updates with proper UI indicators.
17
+
5.**Stripe Payment Element** – Uses Stripe's recommended Payment Element for secure payment collection.
17
18
18
19
> The example purposefully uses simplified order creation and minimal product selection to keep the focus on Elastic Path payment mechanics.
19
20
20
21
---
21
22
23
+
## Prerequisites
24
+
25
+
Before running this example, you'll need:
26
+
27
+
1.**Elastic Path Commerce Cloud Store** with Elastic Path Payments enabled
28
+
2.**Stripe Account** - Elastic Path Payments is powered by Stripe
29
+
3.**Stripe Publishable Key** - Get this from your Stripe Dashboard
30
+
31
+
---
32
+
22
33
## Project Structure
23
34
24
35
```
@@ -30,7 +41,7 @@ spa-elastic-path-payments/
30
41
│ │ ├── AppHeader.tsx # Authentication status & cart ID display
0 commit comments