#SoloGeneral
1 messages · Page 1 of 1 (latest)
Hi đŸ‘‹
You would need to build an Issuing integration in Test mode to accomplish this
We have implemented issuing. I am not sure what you mean by an issuing integration
Trying to trigger it with the simple command stripe trigger issuing_transaction.created gives me The event ‘issuing_transaction.created’ is not supported by the Stripe CLI.
However
We use the following command to test issuing_authorization.request using a specific card that is in our system. I was wondering if there is a similar command for issuing_transaction.created.
The issuing_transaction.created is not triggered by the request command, so the only option to test this would be to trigger the transaction created specifically.
{"_meta":
{"template_version": 0},
"fixtures": [{
"name": "authorization_request",
"path": "/v1/issuing/cards/ic_1LcWIuR4sTLeLkjx5TcI59d6/test/authorizations",
"method": "post",
"params": {
"held_amount": 1730,
"authorization_method": "online"
}
}]
}'```
Unfortunately that event is not available via the CLI: https://stripe.com/docs/cli/trigger#trigger-event
Only a subset of events are currently supported
We need some way to test this webhook. We create a record in our database when the auth is approved, and have to update it in after the charge is processed (ie: when the transaction is created). Since the issuing_authorization.request does not send this webhook after being approved, we have no other way to test it. Is there a workaround to be able to test it?
The work around for testing purposes is similar to what we recommend with CI/CD integrations. You ca use our API ref docs to get the JSON of these objects and construct your own webhook event payload that you send to your webhook event handler.
In this case you start with the Event object:https://stripe.com/docs/api/events/object and replace the data.object value with an Issuing Transaction data payload: https://stripe.com/docs/api/treasury/transactions/retrieve