#MAL - Testing Issuing
1 messages ยท Page 1 of 1 (latest)
Hi ๐
I'm a little confused. For issuing you would either authorize or reject a transaction. The refund would come from the merchant on the other end of the transaction, wouldn't it?
Yes. We would like to simulate refund transaction from merchant. For example:
We create test card authorisation then approve it and in the end authorisation change status from pending to closed and transaction created. Then we would like to initiate refund transaction for this payment transaction.
But as the card issuer, you wouldn't be the one who initiates the refund. That would be the other party who accepted the charge, no?
As the card issuer - no, but as developer for test this case i would like to have this opportunity ๐
But since that is not a feature the issuer has, we do not have it available in Test mode either. We strive to keep our Test and Live modes as similar as possible to make developing in Test mode an accurate reflection of what you can and cannot do in Live mode.
But how I can see correct example of refund transaction, and how i can test webhook with this event in test mode?
Initiating authorisations it is not a feature the issuer has too. But it is available in test mode.
๐
An issuer absolutely has the ability to authorize transactions in live mode. without it no transactions on the issued card would succceed
When I wrote test authorisation I meant that
I really want to have a button like this one which create test transaction with type "refund".
But that is not realistic.
Ok. Maybe you can give me sample json of this case.
Otherwise, I need to wait for a similar transaction from the client on the live mode to write correct code for this case?
Well there is no webhook event for an issuing authorization refund:
https://stripe.com/docs/api/events/types#event_types-issuing_authorization.created
So I'm still not sure what that would look like
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I want issuing transaction with type 'refund'.
https://stripe.com/docs/api/issuing/transactions/object#issuing_transaction_object-type
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I think this transaction will send by issuing_transaction.created webhook event.
In that case the type would be refund and the amount would be a positive number
Great! It would be even better if it could be simulated from the dashboard.๐
When we receive issuing_transaction.created webhook event with transaction type "refund" do we receive treasury.received_credit.created at the same time?
I don't see any events by that name in our API reference: https://stripe.com/docs/api/events/types#event_types-transfer.created