Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Data Flow

...

...

Go to Developers > Webhooks > Add endpoint.

...

When the Add endpoint is clicked, the image below will be shown

...

Steps in creating Endpoint URL in Setting up Webhook in the Stripe dashboard

  • Copy the URL of the created site (The site where you will copy the URL is accessible by Guest Users.)

  • Go to Stripe Account and search for webhook and Add Enpoint (if you don’t have existing endpoint).

  • In add endpoint, paste your site url and add additional text on your site like your url + /services/apexrest/PosiPay/v1/Webhook/)

  • Add your description

  • In Select Events

 How to set up webhook in the Stripe Dashboard

Go to Developers > Webhooks > Add endpoint.

...

When the Add endpoint is clicked, the image below will be shown

...

Expected Stripe Objects

  1. Charge

  2. Invoice

...

Invoice payments can:

Request payment on specific future dates Automatically charge a payment

Enable the following events on the invoice object:

1. invoice.created

...

2. invoice.payment_failed

...

3. invoice.payment_succeeded

...

Payouts

After the payment, several things can happen. If the payment succeeds normally, you can focus on payout options from Stripe, sending email receipts, and triggering workflows to fulfill the customer’s order. When it’s more complicated, Stripe provides guidance for things like declined cards, refunds, disputes, and fraud. More about payouts here

...