Projects and Research by the Catalina Technology Team

Catalina Technology Blog
  • Home
  • Catalina Corporate Site
  • Products
    • Account Central (Allow your customers to pay bills online)
    • API for Dynamics SL
    • Order Central (Shopping cart for SL)
    • Sales Central (Webbased Order Management Screen)
    • Report Central
    • Amazon Marketplace Integration to Dynamics SL
  • Resources
    • Catalina GitHub Source Code samples
    • Catalina API for SL YouTube Videos
    • Catalina Product Videos
  • About
  • Contact

Home Dynamics SL / Programming / QuickCollect / SL QuickCollect / SLQuickPay Creating an SLQuickCollect Link using a Stored Procedure to Send your Customer a Payment Request for an Invoice

SL Quick Pay tips and tricks

Creating an SLQuickCollect Link using a Stored Procedure to Send your Customer a Payment Request for an Invoice

Catalina’s SLQuickCollect is a way to send a request for payment to your customer as an email with a link to click to pay. Your customer simply clicks on it and pays (no need for a portal login or anything). The payment works through a PCI compliant payment processor and is automatically integrated back into Dynamic SL’s AR.

There are many ways to create SLQuickCollect links. One of which is calling a stored procedure by passing a few parameters.

The stored procedure is called: xct_spSLPaddInvoicePaymentRequest

The parameters to this proc is:

  • @batNbr: The batch number of the invoice you want to send
  • @refNbr: The invoice number you want to send
  • @CustID: The customer who the link is going to be going to
  • @paymentEmailList: A delimited list of email addresses the link will be sent to
  • @siteID: (optional) For which configuration site to use (defaults to ‘SLPAY’)
  • @setupID: (optional) The PayFabric setupID you are to send. If not passed, the default will be used from SLQuickCollect’s configuration
  • @deviceID: (optional) The PayFabric deviceID you are to send. If not passed, the default will be used from SLQuickCollect’s configuration

You can call this stored procedure from most anything. You could call it from a trigger when an invoice is created. You can call it from a SL screen. Or even another application all together (like maybe excel that has a list of invoices to send)

Here is an example of how I added a button on the Invoice and Memo screen to send a SLQuickCollect link for a particular invoice.

Below, you can see where I created a button “Send SLQuickLink” that will take the current invoice on the screen and send a payment request link to the customer.

Below is the code behind the click event of the button. This will look at the current batNbr, refNbr (invoice number), custID, and get the email tied to the customer to send the link to that customer’s email.

Private Sub bPayLink_Click()
    Dim SQLStr As String
    Dim Csr_temp As Integer
    Dim sCustID As String
    
    Dim recfound As Integer
    Dim maintflg As Integer
    
    sCustID = GetObjectValue("ccustid")

    SQLStr = "Customer_All " + SParm(sCustID)
    serr = SqlFetch1(Csr_temp, SQLStr, bCustomer, LenB(bCustomer))
     
    Dim lsSQL As String
    Dim liCursor As Integer
    
    lsSQL = "xct_spSLPaddInvoicePaymentRequest" & SParm(ThisScreen.cbatnbr.Text) & SParm(ThisScreen.crefnbr.Text) & SParm(ThisScreen.ccustid.Text) & SParm(bCustomer.EMailAddr) & SParm("SLPAY")

    Call sql(liCursor, lsSQL)
    Call SqlFree(liCursor)
    
    MsgBox ("SLQuickLink Sent to CustID " + ThisScreen.ccustid.Text + " for invoice " + ThisScreen.crefnbr.Text)
End Sub

bwharton October 2, 2020

Account Central / Dynamics SL / Online Bill Payment / Payment Processing / SLPay / SLQuickPay /

EDI Integration with Dynamics SL Using Catalina
Online Payment for Deposits or Payment Entries in Dynamics SL



Categories


Tags

.netCore (1) Account Central (7) adafruit (3) API (28) API for DynamicsSL (21) Business Central (1) Catalina API for Dynamics SL (29) Catalina Applications (2) Catalina Integrator (2) Catalina Technology (2) ctapi (32) ctDynamicsSL (15) ctIntegrator ETL Tool (2) Data Integration (2) development (2) DOTNetCore (3) dotnet core (1) Dynamics SL (22) ecommerce (2) Fabrication (2) hydroponics (5) IIS (1) Integration (4) iot (6) Online Bill Payment (10) Payment Portal (3) Payment Processing (9) pci compliance (2) Programming (7) Quick Query (5) QuickQuery (5) REST (3) Security (2) server configuration (4) setup (3) shopify (1) SLPay (4) SL QuickCollect (2) SLQuickPay (9) SOAP (4) sql server (3) Surfing (1) Tips and Tricks (4) tutorial (11) web services (6)

Recent Posts

  • Create an APRS iGate on a Raspberry Pi
  • Catalina API for Dynamics SL Timeouts
  • Missing Database information
  • How to fix: ‘DMG_TermsSelected’ expects parameter ‘@SOBehavior’, which was not supplied.
  • Typical Catalina Integration Architecture

Recent Comments

  • rcdfJanio on PH/Temp meter now in the garden
  • Tarannum Khadri on Testing PH/Temperature sensor
  • Nathan on PH and Temperature Hydroponic Monitor using MQTT
  • Tips/Tricks on using Catalina’s Quick Query API to get the data you want out of a SQL Server Database on Dynamics SL Quick Query through Catalina’s RESTful API
  • Tips/Tricks on using Catalina’s Quick Query API to get the data you want out of a SQL Server Database on Example of building a Form Client to use the Catalina Quick Query SOAP Web Service

Archives

Categories

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

© Catalina Technology Blog

Franklin Theme