정기결제 API

. .

https://docs.tosspayments.com/guides/billing/integration#api-%ED%98%B8%EC%B6%9C%ED%95%98%EA%B8%B0

의 url
curl --request POST \
--url https://api.tosspayments.com/v1/billing/authorizations/issue \
--header 'Authorization: Basic dGVzdF9za19rWkxLR1B4NE0zTWU5bDY5OWs0M0JhV3lwdjFvOg==' \
--header 'Content-Type: application/json' \
--data '{"authKey":"fy50SInuuW3SBIAJUTriU","customerKey":"nPsEyp087S9kpk4e201G4"}'


.
curl -X POST \
https://pay.toss.im/api/v1/billing-key \
-H 'Content-Type: application/json' \
-d '{
"apiKey": "example_api_key",
"productDesc": " ",
"userId" : "TOSS-TEST-1",
//"displayId" : "TEST_SERVICE_1",
"resultCallback" : "https://YOUR-SITE.COM/callback",
"retAppScheme": "testshop://",
//"returnSuccessUrl" : "https://YOUR-SITE.COM/success",
//"returnFailureUrl" : "https://YOUR-SITE.COM/fail"
}'

?
. 🙂
.
카드 등록 후 자동으로 결제하기 (빌링) | 토스페이먼츠 개발자센터
Was this page helpful?