Skip to content

Instantly share code, notes, and snippets.

@spiritbroski
Last active December 7, 2020 07:05
Show Gist options
  • Select an option

  • Save spiritbroski/c80dfd7c78e94faf48ef73cb4a99e42c to your computer and use it in GitHub Desktop.

Select an option

Save spiritbroski/c80dfd7c78e94faf48ef73cb4a99e42c to your computer and use it in GitHub Desktop.
...
paypal-auth:
handler: paypal.authorize_paypal
annotations:
web-export: true
parameters:
paypal_client_id: ${env:paypal_client_id}
paypal_client_secret: ${env:paypal_client_secret}
frontend_url: ${env:frontend_url}
save-paypal:
handler: paypal.save_paypal
parameters:
token_pass: ${env:token_pass}
frontend_url: ${env:frontend_url}
events:
- http: POST /save_paypal
bind:
- service:
name: cloudantnosqldb
instance: Cloudant-vm
get-paypal:
handler: paypal.get_paypal
parameters:
token_pass: ${env:token_pass}
frontend_url: ${env:frontend_url}
events:
- http: GET /get_paypal
bind:
- service:
name: cloudantnosqldb
instance: Cloudant-vm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment