How to test module payment links

Hey @NathanAtGrowth (and thanks for the tag @Brenner :blush:).

I think the only way to test a Payment link is:

  1. Navigate to Commerce > Payment Links in your HubSpot account
  2. Hover over the link you want to test and click Actions, then select Open link in test mode
  3. The link will open in test mode, indicated by a banner at the top of the checkout page
  4. Use the provided sample credit card or bank debit information to complete a test purchase

As for testing it in a custom module, I’m not sure how that afects the link itself, so I’m not understanding that layer and why you’d need to test in that module. If it’s a link, it operates the same whether it’s in a custom module, in an email, or behind a QR code - at least to my underatanding.

But that’s how I’d test the link before putting it into a module or location.

Hope that helps!