Setup |
Previous Next | Direct link to this topic |
After installing and setting up B1 iPayment you have the option to modify the B1P&D email body in the Report action or Directly in the Crystal Report to include "Add one-time Credit Card" and "Pay now" links. This allows you to send out emails that contain a link where the customer can associate the Credit Card details with a specific document in SAP, or pay an invoice in SAP. The keywords will allow you to send out emails automatically that contain a link for adding the Credit Card information or for paying an invoice.
NB: any link created last up to 30 days NB: if a link already exists for a document the same link is used, until the link expires
Add credit card example:Combining the two keywords for add one-time credit card allows for creating a condition in the email template so that the link and text will only get shown if a link can be generated. Example:
The template above (HTML body) will only show the add Credit Card link if iPayment can generate a valid link when the document is processed by B1P&D. This ensures that you can continue to use the same template trough the sales process as the Credit Card link and text will only be shown when it makes sense. You can modify the text “Please add your Credit Card…” to match your business and you can add additional text and explanation. Output of the configuration above is: Output when the link can no longer be generated (Sales order is closed) Pay Now example:Combining the two keywords for Pay now allows for creating a condition in the email template so that the link and text will only get shown if a link can be generated. Example:
The template above (HTML body) will only show the add Credit Card link if iPayment can generate a valid link when the document is processed by B1P&D. This ensures that you can continue to use the same template trough the sales process as the Credit Card link and text will only be shown when it makes sense. You can modify the text “Please add your Credit Card…” to match your business and you can add additional text and explanation. Output of the configuration above is: Output when the link can no longer be generated (Sales order is closed) Crystal Report IntegrationSimilar to that you can use the special keywords in the Report Action you can also do the same in you Crystal Reports. Here is how to set it up:
Step 1: Create a new Formula Field in Crystal Report
Step 2: Write the following Formula
(for copy/paste)
IF('$[IPAYMENT_CAN_CREATE_PAYNOWLINK]' = 'Y') THEN '<a href="$[IPAYMENT_PAYNOWLINK]">Pay this invoice now</a>'
Step 3: Add the Formula Field onto the Report
Step 4: Right-click the field, Choose Format Field and Under the Paragraph Tab select Text Interpretation as HTML Text
If you do this you will end up with a link in the Crystal Report / PDF that take the customer to the payment page
|