Skip to content

Stripe Bug: Hash on Coupon Apply #730

@jaswrks

Description

@jaswrks

Overview

When applying a coupon code the Stripe Pro-Form should be submitted with the #s2p-form hash just as it does when you select a checkout option. Otherwise, if the Pro-Form is displayed further down the page, a customer might miss the coupon having been applied; i.e., they would need to scroll down to see it.

Steps to Reproduce

  • Setup a Stripe Pro-Form on a page with a long block of text before it.
  • Enter a coupon code and press "Apply Coupon".

Expected Behavior

That the form would be submitted and move you back to the Pro-Form, instead of to the top of the page.

Observed Behavior

The coupon is applied, but the page is reloaded and the scroll position is at the very top of the page instead of back at the Pro-Form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions