Payment Session URL Not Triggered After "Pay Now" Button Click

We are developing a payment extension and have installed our app in a development store. During test orders, customers can select our payment app, ​​but clicking the ‘Pay Now’ button fails to trigger the payment_session_url configured in shopify.extension.toml​​. I’ve searched related threads in the forums but found no working solutions. Any guidance would be desperately appreciated. Thank you!

Hey @user147, is your currently published extension the active version? You can double check this under versions in your partner dashboard.

Hey there! Are you still experiencing this issue, or can I mark this as solved?

Hello, thank you for your help. I just found your reply, sorry about that. The issue above has been resolved; it was a problem with the Oauth2 scope permissions.

However, I now have a new issue. When the merchant initiates a refund and the refund_session_url is triggered, if I return a non-2XX HTTP status (e.g., a 500 error), the merchant dashboard shows this transaction in a ‘refunding’ status. ​​Does this mean that when the refund_session_url interface returns a 500 error, I also need to call the refundSessionReject interface?​

Great to hear that is resolved. For the second issue, that does seem right, atleast while the request is being retried (as documented here

If you are going to reject it, then you should use that mutation.