feat(checkout): refactor purchase completion flow and clear cart state
This commit is contained in:
@@ -85,11 +85,11 @@ export class PurchaseStatusPageComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
private resolveStatus(purchase: PurchaseStatusResponse): PurchaseStatusView {
|
||||
if (purchase.payment_status === 'approved' || purchase.status === 'paid') {
|
||||
if (purchase.status === 'paid') {
|
||||
return 'approved';
|
||||
}
|
||||
|
||||
if (purchase.payment_status === 'rejected' || purchase.status === 'cancelled') {
|
||||
if (purchase.status === 'rejected' || purchase.status === 'cancelled') {
|
||||
return 'rejected';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user