The CabGrid Pro taxi price calculator WordPress plugin provides the ability for customers to immediately pay for their booking (via PayPal or add-on gateway) after the booking request is submitted. However, making a payment is not mandatory (see require payment after booking).
Because of this, you may want to include a payment link in the booking acknowledgement email. This is the email automatically sent to the customer acknowledging their booking request. There are number of ways you can construct a payment link and include it in the acknowledgement email. The method you choose will depend on what CabGrid add-on plugins you have installed (if any).
PayPal
CabGrid supports PayPal payments with no add-ons required. You simply add your PayPal address under the OPTIONS tab in the CabGrid Pro admin. (For more general setup info, see configuring your PayPal account in CabGrid).
To include a link in the acknowledgement email, you will need to construct a special PayPal link that includes certain details. This link can then be added to the booking acknowledgement email.
You can use CabGrid’s text-substitution syntax to automatically add journey details to the link so you can tie the payment to a specific booking.
To build your link you can use this format, replacing the parts in curly brackets with your own info:
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business={your-paypap-email}&item_name={journey-details}&item_number={booking-ref}&amount={journey-fee}¤cy_code={3-character-currency-code}
In this example we are using the vehicle and pick-up and destination locations as the description, the CabGrid booking ref as the item number, the total for the booking, and the currency code:
https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=///vehicle///%20///To_Area///-///From_Area///%20///pickupDate///&item_number=///cabGridProBookingID///&amount=///price///¤cy_code=///currencyCode///
Note, we are using %20 to indicate a space. The cabGridProBookingID should match the reference included in the admin notification email (within content and the subject line).
Now, you just need to add the link to your acknowledgement email with accompanying explanatory text:
Use the CabGrid Booking Management add-on
The CabGrid Booking Management add-on plugin records taxi booking requests in the WordPress admin. This means a page can be constructed directly on your site to accept bookings via any installed payment mechanism (PayPal, Stripe, etc.)
Prerequisites
- You will need to set up a custom page on your site that will display the payment form. For instructions, see the Custom Post-Booking Payment Page section on the Booking Management v2 page.
- You will need to place the the post-booking payment shortcode on this page:
[cabGridBookingsPayment]
- The URL of this page will for the basis of the payment link in your acknowledgement email.
Once this page is set up you can construct your booking link. As above, you will use CabGrid’s text-substitution syntax to load details of the specific booking.
The format for the payment link will be as follows:
{URL-of-custom-booking-page}/?e={customer-email-address}&sid={cabgrid-booking-id}
For example:
https://cabgrid.com/booking-management-add-on-for-cab-grid-pro/post-booking-payment-page/?e=///email///&sid=///cabGridProBookingID///
This would link to a page like this demo page.
As shown above, you would add this link to the booking acknowledgement email box found under the CabGrid SETTINGS tab.
///id/// doesn´t work it shows data not currently available]
Thanks for bringing this to our attention. There was an issue with the method we initially described.
This can be resolved by updating the Cab Grid Booking Management add-on to version 2.7.3 (or later) and updating the link syntax as per the following example. The key is to use the ‘sid’ query parameter instead of ‘id’ and pass the system booking reference in:
The article above has now been updated to reflect the change mentioned here.
This seems to be wrong. At least, for the email which users get after you ACCEPT the ride.
There, the payment link parameter is not SID, but is is ID.
Besides that, the value should be: ///id/// instead of ///cabGridProBookingID///
cabGridProBookingID shows a large number like: 20424783 while ID reflects something like: 253
There is another problem when using a DEPOSIT, The payment link (when paying later) as well as the Stripe (standard method) which goes to the Stripe website, always calculates the full amount, not the deposit.
Please try updating to CabGrid Booking Management v.2.7.4.