> For the complete documentation index, see [llms.txt](https://docs.spurtcommerce.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.spurtcommerce.com/api-reference/store/payments/payment-gateways.md).

# Payment Gateways

Start Store payment flows for supported payment gateways.

## Process a PayPal payment for an existing order.

> Process a PayPal payment for an existing order.\
> \
> \*\*Authentication:\*\* Payment gateway flow; actual redirect or provider behavior depends on plugin configuration.\
> \
> \*\*Feature area:\*\* Payments\
> \
> \*\*Implementation source:\*\* \`PaypalController.ts\`\
> \
> \> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.

```json
{"openapi":"3.0.3","info":{"title":"SpurtCommerce Store API","version":"6.0.0"},"tags":[{"name":"Payment gateways","description":"Start Store payment flows for supported payment gateways."}],"servers":[{"url":"https://api.example.com","description":"Replace with your SpurtCommerce API host. Paths include the /api prefix."}],"paths":{"/api/paypal-payment/process/{id}":{"get":{"operationId":"getApiPaypalPaymentProcessId","summary":"Process a PayPal payment for an existing order.","description":"Process a PayPal payment for an existing order.\n\n**Authentication:** Payment gateway flow; actual redirect or provider behavior depends on plugin configuration.\n\n**Feature area:** Payments\n\n**Implementation source:** `PaypalController.ts`\n\n> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.","tags":["Payment gateways"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Value for id."},{"name":"orderprefixid","in":"header","required":false,"schema":{"type":"string"},"description":"orderprefixid request header."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"additionalProperties":true}}}}}}}}}
```

## Process a Razorpay payment for an existing order.

> Process a Razorpay payment for an existing order.\
> \
> \*\*Authentication:\*\* Payment gateway flow; actual redirect or provider behavior depends on plugin configuration.\
> \
> \*\*Feature area:\*\* Payments\
> \
> \*\*Implementation source:\*\* \`RazorPayController.ts\`\
> \
> \> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.

```json
{"openapi":"3.0.3","info":{"title":"SpurtCommerce Store API","version":"6.0.0"},"tags":[{"name":"Payment gateways","description":"Start Store payment flows for supported payment gateways."}],"servers":[{"url":"https://api.example.com","description":"Replace with your SpurtCommerce API host. Paths include the /api prefix."}],"paths":{"/api/razorpay-payment/process/{id}":{"get":{"operationId":"getApiRazorpayPaymentProcessId","summary":"Process a Razorpay payment for an existing order.","description":"Process a Razorpay payment for an existing order.\n\n**Authentication:** Payment gateway flow; actual redirect or provider behavior depends on plugin configuration.\n\n**Feature area:** Payments\n\n**Implementation source:** `RazorPayController.ts`\n\n> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.","tags":["Payment gateways"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Value for id."},{"name":"orderprefixid","in":"header","required":false,"schema":{"type":"string"},"description":"orderprefixid request header."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"additionalProperties":true}}}}}}}}}
```

## Process a Stripe payment for an existing order.

> Process a Stripe payment for an existing order.\
> \
> \*\*Authentication:\*\* Payment gateway flow; actual redirect or provider behavior depends on plugin configuration.\
> \
> \*\*Feature area:\*\* Payments\
> \
> \*\*Implementation source:\*\* \`StripeController.ts\`\
> \
> \> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.

```json
{"openapi":"3.0.3","info":{"title":"SpurtCommerce Store API","version":"6.0.0"},"tags":[{"name":"Payment gateways","description":"Start Store payment flows for supported payment gateways."}],"servers":[{"url":"https://api.example.com","description":"Replace with your SpurtCommerce API host. Paths include the /api prefix."}],"paths":{"/api/stripe-payment/process/{id}":{"get":{"operationId":"getApiStripePaymentProcessId","summary":"Process a Stripe payment for an existing order.","description":"Process a Stripe payment for an existing order.\n\n**Authentication:** Payment gateway flow; actual redirect or provider behavior depends on plugin configuration.\n\n**Feature area:** Payments\n\n**Implementation source:** `StripeController.ts`\n\n> Example is based on the linked repository source. Replace example identifiers and credentials with values from your tenant.","tags":["Payment gateways"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"},"description":"Value for id."},{"name":"orderprefixid","in":"header","required":false,"schema":{"type":"string"},"description":"orderprefixid request header."}],"responses":{"200":{"description":"Successful response.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"}},"additionalProperties":true}}}}}}}}}
```
