mozilla / payments

The root repository for all things Payments at Mozilla.
Other
9 stars 9 forks source link

Event UX #25

Closed andymckay-limited-access closed 9 years ago

andymckay-limited-access commented 9 years ago

In the documentation we list some potential events that get sent to users, as information and security features. Those are:

http://payments.readthedocs.org/en/latest/design/api.html#events

Let's check those make sense and get a plan for how they'll look. Just all emails in the style of Firefox Accounts?

brampitoyo commented 9 years ago

Here are my recommendations on handling various events via email notification.

Payment method created.

When a new credit card is added event, it’s immediately visible on the purchase flow.

There’s no need to send an email unless we’re concerned about unauthorised access. (For example, Facebook would tell you if you’re signed in from an unknown device.)

Payment method updated for subscription.

Gist: each subscription can be paid with different credit cards. When the credit card change, should we send an email that says “This subscription is now paid using B instead of A”?

Subscription created.

This notification is be bundled with the email receipt. A subscription receipt will have an extra field that says “Next payment”.

This makes a separate “You’re subscribed to [product]” email unnecessary.

Subscription charge succeeded (e.g. every month).

Email receipt will indicate that the charge has succeeded.

Subscription charge failed.

This will need email notification. It should at the very least specify:

On the link to fix it, user can do these things:

I’m not sure where this link should lead to. Should it lead to the buy flow iframe, or the payments dashboard instead? I am tempted to keep things really simple and just rely on the buy flow for everything.

Subscription cancelled.

More important than the notification itself is acknowledging two things:

I think this is a job that can be accomplished using a really good cancel UI. It should say “Your subscription will be valid until [date]/Your subscription will instantly terminate. [Keep my subscription/Cancel]”

Summary: should we send email notification during this event?

andymckay commented 9 years ago

That's awesome and makes sense to me. The only reason I can see a need for some of these notifications is the possible security component and the worry of unauthorized access. The notification provides an out of band message that makes it one bit harder to fake.

For "Subscription charge succeeded", you say "Email receipt will indicate that the charge has succeeded." So that sounds like we are sending an email in this case, it's just the email receipt?

Any chance you could pretty much copy and paste that into the docs and send in a pull request?

https://github.com/mozilla/payments/blob/master/docs/design/api.rst#events

brampitoyo commented 9 years ago

Yeah. Security and access were my concerns, too, so we’re on the same page!

For "Subscription charge succeeded" […] that sounds like we are sending an email in this case, it's just the email receipt?

Yes. We’re just sending the receipt itself. We won’t send a separate email that says “The charge came through”.