Create Pakasir payment edge function to fix CORS issue

- Create create-pakasir-payment edge function to handle payment creation server-side
- Update ConsultingBooking.tsx to use edge function instead of direct API call
- Update Checkout.tsx to use edge function instead of direct API call
- Add config.toml entry for create-pakasir-payment function
- Removes CORS errors when calling Pakasir API from frontend

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2025-12-23 21:20:40 +07:00
parent 94403bd634
commit a9f7c9b07a
4 changed files with 147 additions and 64 deletions

View File

@@ -44,3 +44,6 @@ verify_jwt = false
[functions.delete-order]
verify_jwt = false
[functions.create-pakasir-payment]
verify_jwt = false