Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Release Date: 19Jun2024

URL:

/packagingSetupUI/ipLanding.app?apvId=04tOZ0000001DUfYAM

Updates

Payment Intent Canceled Webhook Event

  • When cancelling an invoice,

    • The open invoice will be cancelled

    • Assuming the webhook is configured properly:

      • The Gateway Invoice record is updated where:

        • Invoice Status = Void

        • Canceled Date = Canceled Date from the parsed payload

        • Other fields are populated based on the parsed payload

      • The Gateway Transaction record that links to Gateway Invoice record is updated where:

        • Transaction Status = Canceled

        • Canceled Date = Canceled Date from the parsed payload

        • Other fields are populated based on the parsed payload

Global Invoice Cancellation API (Void an Invoice)

  • Pre-requisite:

    • Process an invoice by using a token with a soft decline card details

      • It is expected to have the payment as open instead of failed because the Smart Retries feature of the Stripe account is enabled

    • Create a screen flow to initiate an invoice cancellation:

      • On the screen,

        • Display the necessary fields for an invoice cancellation to feed it to the invocable apex class

        • Call the invocable apex class for the invoice cancellation and pass the following details to the invocable variables:

          • Gateway Account = Gateway Account record

          • Invoice ID = Gateway Invoice’s Invoice ID (open invoice)

  • When cancelling an invoice,

    • The open invoice will be cancelled

    • Assuming the webhook is configured properly:

      • The Gateway Invoice record is updated where:

        • Invoice Status = Void

        • Canceled Date = Canceled Date from the parsed payload

        • Other fields are populated based on the parsed payload

      • The Gateway Transaction record that links to Gateway Invoice record is updated where:

        • Transaction Status = Canceled

        • Canceled Date = Canceled Date from the parsed payload

        • Other fields are populated based on the parsed payload

Gateway Invoice Cancel Invoice Button (PosiPay)

  • When cancelling an invoice via the Cancel Invoice button in the Gateway Invoice record,

    • If the Gateway Invoice’s Invoice Status != Open,

      • An error message will display: You can only cancel an open invoice.

    • If the Gateway Invoice’s Invoice Status = Open,

      • The open invoice will be cancelled

      • Assuming the webhook is configured properly:

        • The Gateway Invoice record is updated where:

          • Invoice Status = Void

          • Canceled Date = Canceled Date from the parsed payload

          • Other fields are populated based on the parsed payload

        • The Gateway Transaction record that links to Gateway Invoice record is updated where:

          • Transaction Status = Canceled

          • Canceled Date = Canceled Date from the parsed payload

          • Other fields are populated based on the parsed payload

  • No labels