Mine, all mine
Now that we have a payment processing solution available, let's put it to good use by creating an interactive Visualforce page that will allow us to collect credit card information for processing. We'll make this page and its extension fairly dynamic, because we will make this one single page available internally as an embedded page within the Statement record view page and as a standalone page overriding the New button for payments; we will make it available as an external page that will allow users to pay without logging into Salesforce! We will be using concepts from Chapter 5, Visualforce Development with Apex, and Chapter 6, Exposing Force.com to the World, extensively, so refer to those if the need arises.
Black magic
First steps first. We'll be using the standard controller for Statement__c
, and we'll need a custom extension called payments_Extension
that contains a Payment__c
record variable. Go ahead and create this extension now in Eclipse by right-clicking and navigating...