Throws when event is a card.saved event, so the rest of the code can read event.payment.
event
card.saved
event.payment
Throws when
eventis acard.savedevent, so the rest of the code can readevent.payment.