Complete purchase
complete_purchaseAfter paying with prepare_purchase.payment_plan, submit the mined transaction hash with the payment_id, purchase_ticket, and commerce_scope. Verifies the payment on-chain, then executes the purchased function and returns its result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| buyer | Yes | ||
| job_id | Yes | ||
| tx_hash | Yes | ||
| payment_id | Yes | ||
| function_name | Yes | ||
| commerce_scope | Yes | ||
| purchase_ticket | Yes |