Skip to content

Best way to create my own Charge #682

Answered by excid3
jaahoo asked this question in Q&A
Discussion options

You must be logged in to vote

Adding an after_create or similar callback to the Pay::Charge model would work best because you can wait until Pay has handled the webhook and synced all the data.

We will probably expose some of these events in a Pay configuration in the future so you can define callbacks without having to use modules.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jaahoo
Comment options

Answer selected by jaahoo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants