If you have set the success URL in the payment and you are getting error page on submitting the card update or renew form of membership update component. Then please do the following configurations one by one and see if one or all of the configuration works
CSP Trusted Site
- Go to Setup
- Search for Trusted URLs.
- Create new record.
- Add any API name.
- Add the base URL.
- Give permission of all or necessary CRP directives.
Trusted Domains in Sites
- Go to Setup.
- Search for Sites in Quick find box.
- Click and open your site
- Scroll Down to the "Trusted Domains for Inline Frames" panel.
- Click on Add Domain and add the base URL of your success site.
- Click Save
Add URL in Session Settings
- Go to Setup
- Search for Session settings and open it.
- Look for 'Clickjack Protection section and enable Clickjack protection for customer Visualforce pages (last 2 options).
- Press 'Save' at the end of the page.
- Look for 'Trusted Domains for Inline Frames' section.
- Click on Add Domain
- Add the succes page Base URL in the Domain field.
- Select Visualforce Pages in the Iframe Type dropdown.