# `MishkaPay.Ash.Payment.Sync`
[🔗](https://github.com/mishka-group/mishka_pay/blob/v0.0.1/lib/mishka_pay/ash/__payment/sync.ex#L6)

Reads a payment from its provider before the action's transaction starts and writes what the
provider said; after the transaction, fires `mishka_pay:payment:changed`. A payment the
provider cannot give is an error on the action, and nothing is written.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
