Skip to content

Commit 52955f5

Browse files
authored
Merge branch 'main' into worktree-swml-transcribe-docs
2 parents 71fd5cf + 1681978 commit 52955f5

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

  • fern/products/swml/pages/reference/methods/calling/pay

fern/products/swml/pages/reference/methods/calling/pay/index.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ max-toc-depth: 3
99
[supported-languages-voice]: /docs/platform/voice/tts
1010
[currency-code]: https://en.wikipedia.org/wiki/ISO_4217
1111

12-
Enable secure payment processing during voice calls. When implemented in your voice application, it manages the entire payment flow, including data collection, validation, and processing, through your configured payment gateway.
12+
Enable secure payment processing during voice calls.
13+
When implemented in your voice application, it manages the entire payment flow —
14+
collecting card details from the caller via DTMF, then POSTing them to a `payment_connector_url` you host.
15+
Your server is responsible for charging the card through your payment processor (Stripe, Braintree, etc.) and returning the result to SignalWire.
1316

1417
## **Transaction Types**
1518

@@ -27,7 +30,7 @@ version: 1.0.0
2730
sections:
2831
main:
2932
- pay:
30-
charge_amount: 25.00
33+
charge_amount: "25.00"
3134
payment_connector_url: "https://example.com/process"
3235
```
3336
</CodeBlock>
@@ -39,7 +42,7 @@ sections:
3942
"main": [
4043
{
4144
"pay": {
42-
"charge_amount": 25.0,
45+
"charge_amount": "25.00",
4346
"payment_connector_url": "https://example.com/process"
4447
}
4548
}
@@ -68,7 +71,7 @@ version: 1.0.0
6871
sections:
6972
main:
7073
- pay:
71-
charge_amount: 0
74+
charge_amount: "0"
7275
payment_connector_url: "https://example.com/process"
7376
```
7477
</CodeBlock>
@@ -80,7 +83,7 @@ sections:
8083
"main": [
8184
{
8285
"pay": {
83-
"charge_amount": 0,
86+
"charge_amount": "0",
8487
"payment_connector_url": "https://example.com/process"
8588
}
8689
}
@@ -949,4 +952,4 @@ sections:
949952
}
950953
```
951954
</CodeBlock>
952-
</CodeBlocks>
955+
</CodeBlocks>

0 commit comments

Comments
 (0)