Skip to content

Instantly share code, notes, and snippets.

@ewilde
Last active March 20, 2019 07:39
Show Gist options
  • Save ewilde/a23d4a5cb477b8a6d6a0828bccac9bc2 to your computer and use it in GitHub Desktop.
Save ewilde/a23d4a5cb477b8a6d6a0828bccac9bc2 to your computer and use it in GitHub Desktop.
Submitting a payment
let payment_id = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
let submission_id =xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
result = post payment with payment_id
if result = 409
log warn payment exists
result = post payment_submission with payment_id, submission_id
if result = 409
log warn submission exists
payment = get_payment with payment_id
log warn payment details %v payment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment