Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manual process to refund PayPal purchases #1426

Closed
pdpinch opened this issue Feb 10, 2023 · 3 comments · Fixed by #1451
Closed

Manual process to refund PayPal purchases #1426

pdpinch opened this issue Feb 10, 2023 · 3 comments · Fixed by #1451
Assignees

Comments

@pdpinch
Copy link
Member

pdpinch commented Feb 10, 2023

We reliably get 400 errors when refunding PayPal purchases. While we are working on #1047, what is the correct way to handle these errors?

The Finance team has been helpful by manually refunding the purchases through the Cybersource Business Center. What do we need todo to make sure the mitxonline application is in sync with that refund?

example user issues:

@cachob
Copy link

cachob commented Feb 14, 2023

@jkachel or @collinpreston - do you mind taking a stab at this pls?

@jkachel
Copy link
Contributor

jkachel commented Feb 14, 2023

What I've done in the past is set the order to "Refunded" using a database shell and then manually reconciling the enrollments in MITx Online according to the situation. (So, if it's a partial refund and the learner's keeping their verified enrollments, I don't adjust them at all; but for https://github.com/mitodl/hq/issues/585 I'd set the enrollment back to audit and then sync it with edX.)

An important thing to note is that the Django Admin has a Refund Order button/workflow for Completed Orders - this will try to push a refund through using the CyberSource API so it's not useful in this case (the order is already refunded - and we can't refund PayPal transactions using this method either; it fails for the same reasons they fail via the Google sheet).

@pdpinch
Copy link
Member Author

pdpinch commented Feb 22, 2023

@jkachel Is it possible to write a management command, or add a button somewhere so @cachob and I can do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants