feat(firestore-stripe-payments): Update payments collection for refunds#650
feat(firestore-stripe-payments): Update payments collection for refunds#650chetbox wants to merge 2 commits intoinvertase:nextfrom
Conversation
e14adbb to
b4c6ca5
Compare
Requires adding the `charge.refunded` webhook handler event
|
Thanks for approving this. Will it be merged and released soon? |
|
@Jaimealdon, @cabljac do you need me to fix the conflicts here? |
|
Hi @Jaimealdon, @cabljac are there any other requirements I should know about before this can be merged? |
Also paging @HassanBahati and @CorieW as recent PR approvers. |
|
Hi everyone, |
Resolves #315
Updates the
chargesproperty in the payments collection.Requires adding the
charge.refundedwebhook handler event.Screenshots from Firebase Console
Tested by deploying a local copy of the extension in our Firebase test environment.
charges.data[0]property of a payment before refund:charges.data[0]property of the same payment after refund:Edit: I realised that a retrieving a Payment Intent does not include the
chargeslist and it's not listed in the Payment Intent object. Thechargeskey does appear in the payments collection, however, so I've updated this change to find and update the Charge object inchargeswhen thecharge.refundeddata is received.Edit 2: I formatted the new code with Prettier and removed the
package-lock.jsonchanges.