Skip to content

Updated PaymentMethod after Cancelled transaction doesn't update mollie redirectUrl #588

@Bernardus

Description

@Bernardus

When a payment is cancelled, its possible to update the payment with the store-api.

// POST /store-api/order/payment

{
    "paymentMethodId": "1901dc5e888f4b1ea4168c2c5f005540",
    "orderId": "4139ce0f86fb47ff872a1ec88378f5d1"
}

This updates the Payment method field in the order overview in the shopware admin.
But the redirectUrl i call again on /store-api/handle-payment does not update.

Why i want this:
I've noticed that a lot of customers use the history/back button instead of cancelling the payment.
This will not trigger the default failed payment feature. So i manipulate the history so that when using the history/back button the customer loads a custom retry payment. on this page i cancel the payment and run the code above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Payments APITickets related to refactorQuestion / IssueFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions