Create a custom button for hosted payment page
Refere this article to create a custom button on the Quote Detail page to launch a Hosted Payment Page.
You can create a Hosted Page button and launch the Hosted Page using the button on the Quote Detail page.
-
Create a custom Visualforce page, named
CreateCreditCard, using the standard controllerzqu.Quote__cand theCustomHostedPagecreated in the pevious section:<apex:page standardController="zqu__Quote__c"> <apex:include pageName="CustomHostedPage"/> </apex:page> - Navigate to Setup > App Setup > Create > Objects , and click Quote .
- In the Buttons, Links, and Actions section, click New Button or Link .
- Create a new Page Button. In this example, the button is named "Create Credit Card".
-
Enter the rest of the required fields as shown below.
- Click Save .
- Click the link, Back to Custom Object: Quote.
- In the Page Layouts section, click Edit next to the Quote Layout - Default V6.1 page layout.
- Click Buttons , and drag the newly created button to the button bar.
- Click Save .