Discussions

Ask a Question
Back to all

[Stripe Integration] What should be added in the transaction_reference object for successful transaction matching?

Hi,

We currently generate our invoices directly in Pennylane from our web portal using the Customer Invoice API.

Everything is working smoothly and the process is as follow:

  • [OUR APP] Customer creates an order and confirms a couple of things, then accepts to pay
  • [STRIPE] Customer is redirected to standard stripe payment process flow and validates the payment
  • [PENNYLANE] We generate the customer invoice and add a transaction_reference object to the payload as follow

We have successfully connected and retrieved the stripe transactions in the Pennylane App and we see all the transactions with their txn_XXXids corresponding to what we have in the stripe portal.

Unfortunately, the matching process does not seem to actually recognize the transactions from Stripe to automagically link them to our invoices. Most of the invoices <-> stripe-transactions links are incorrect or missing.

Are we doing anything wrong ?

Should we rather use the charge_id (ch_xxx) or the transaction_id(txn_xxx) values in the generated invoices instead of the payment_id field? And in which case, what should be the name of the provider_field_nameto use ?

Thank you so much for your help.

Please note that you can answer in French, English (or Arabic ;-))

-Salah