mirror of
https://github.com/wshobson/agents.git
synced 2026-03-18 09:37:15 +00:00
Restore metadata
This commit is contained in:
@@ -214,6 +214,9 @@ def create_payment_intent(amount, currency='usd', customer_id=None):
|
||||
automatic_payment_methods={
|
||||
'enabled': True,
|
||||
},
|
||||
metadata={
|
||||
'integration_check': 'accept_a_payment'
|
||||
}
|
||||
)
|
||||
return intent.client_secret # Send to frontend
|
||||
```
|
||||
@@ -517,7 +520,3 @@ def test_payment_flow():
|
||||
- **Hardcoded Amounts**: Use cents/smallest currency unit
|
||||
- **No Retry Logic**: Implement retries for API calls
|
||||
- **Ignoring Test Mode**: Test all edge cases with test cards
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user