Skip to main content

If I like to incorporate payment processing  functionalities in a Skuid page using Sage Gateway payment processor, what should I know about the way I need to set up the page and the payment processing components? Are there any best practices around it?

Please let me know and thank you so much.

We’ve implemented payment processing logic in several projects.  I don’t know if we’ve used Sage or not. 

But basically what you need to do is pass data from your Skuid model into an external Apex controller.  This forum post provides lots of good information on the doing that: https://community.skuid.com/t/calling-apex-function


Great, thanks!


Rob, this is a follow up question -


From the article referred - https://community.skuid.com/t/calling-apex-function


Is “Use the Salesforce Apex REST technology to expose your methods as an Apex REST Service, and then callout to this using jQuery get() or similar calls.” the recommended route that Zach McElrath was referring to take and are the examples called out referring to this way of calling out apex functions in Skuid?


I have a custom VF page in the system, can further support be provided to translate that to work with Skuid?


"Example Visualforce Page:



<apex:page docType="html-5.0" readOnly="true"
standardController="Account" extensions="MyApexClass">

<skuid:page page="MySkuidPage"/>

</apex:page>


Example Apex Class:



public with sharing class MyApexClass {

@RemoteAction
public static Account createAccount(String accountName) {
Account a = new Account(Name = accountName);
return a;
}

}


Example use from within Skuid JavaScript code (e.g. a Snippet):



var newAccount = MyApexClass.createAccount('Acme Generators');
alert('New Account Id: ' + newAccount.Id);"