payment processing functionalities in a Skuid page

  • 1
  • Question
  • Updated 3 years ago
  • Answered
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.
Photo of Yina Chun

Yina Chun

  • 792 Points 500 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
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.skuidify.com/skuid/topics/calling_apex_function
Photo of Yina Chun

Yina Chun

  • 792 Points 500 badge 2x thumb
Great, thanks!
Photo of Yina Chun

Yina Chun

  • 792 Points 500 badge 2x thumb
Rob, this is a follow up question - 

From the article referred - https://community.skuidify.com/skuid/topics/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: 


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


Example Apex Class: 


<br>
public with sharing class MyApexClass {
<br><br>
   @RemoteAction
<br>
   public static Account createAccount(String accountName) {
<br>
      Account a = new Account(Name = accountName);
<br>
      return a;
<br>
   }
<br><br>
}
<br>


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


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