confirmPayment

Will open Connect on the payment confirmation page. Upon successful confirmation, users will be redirected back to callbackUrl if provided.

confirmPayment.jpg

The request expects a confirmPayment object that defines the payment to be confirmed.

Creating a Connect Session with confirmPayment intent

$ curl --request "POST" \
--url "https://api.gigs.com/projects/${GIGS_PROJECT}/connectSessions" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${GIGS_TOKEN}" \
--data '{
  "callbackUrl": "https://example.com",
  "intent": {
    "type": "confirmPayment",
    "confirmPayment": {
      "payment": "pay_19XU2VA2J0Z7P8Y40mBAnOP9L1PAr"
    }
  },
  "user": "usr_0U2ViuFW0Z7P8Y2S1L76mfADMT6m"
}'

Note: Only payments with a status of requiresConfirmation are allowed as inputs to this intent.

Where to go from here