⚠️ This sample is Unofficial.⚠️ - Sample repository to use PayPay Open Payment API SDK for Go.
- Server is ported from paypay/paypay-sample-ecommerce-backend-php.
- Use repository paypay/paypay-sample-ecommerce-frontend for Frontend.
go mod tidy
export API_KEY="REPLACE_WITH_YOUR_API_KEY"
export API_SECRET="REPLACE_WITH_YOUR_SECRET_KEY"
export MERCHID="REPLACE_WITH_YOUR_MERCHANT_ID"
make serve
You should now have the dev server running on http://localhost:5000
- Additional, this repository has command for refund.
Order ID
is picked from Transaction List.
make refund
Enter Order ID issued by PayPay to refund: 000000000
Enter refund amount: 100
- Go 1.20 or above.
- Docker (for Development)