Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

Build an API for Fundraising to trigger Invoice creation from Salesforce to Stripe.

This is an invocable method that will

Invoice API with Fundraising Extension Process Flow

...

Invoice API Data Flow

...

  1. Create invoice

    View file
    nameUNKNOWN_ATTACHMENT
    View file
    nameUNKNOWN_ATTACHMENT

  2. Create invoice item

    View file
    nameUNKNOWN_ATTACHMENT
    View file
    nameUNKNOWN_ATTACHMENT

  3. Pay invoice

    View file
    nameUNKNOWN_ATTACHMENT
    View file
    nameUNKNOWN_ATTACHMENT

...

This API will only do the callouts unto the stripe system and not create a single gateway invoice record upon execution. When an invoice is created in the Stripe system, we utilize webhook to pass an event (with the complete invoice details) to PosiPay. PosiPay will translate the raw JSON response from the webhook and create its gateway invoice record in Salesforce.


Gateway Invoice Mapping (Salesforce → Stripe)

Gateway Invoice Field

Response Field

Amount Paid

amount_paid(Invoice)

Invoice ID

 id (Invoice)

Invoice Status

status(Invoice)

Payment Intent ID

payment_intent(Invoice)