...
Settings | Page 1 | Page 2 | Payment Form | Confirmation Page |
---|---|---|---|---|
Free Event with Attendees | ||||
Paid Event with Attendees | ||||
Paid Event with only one Attendee | ||||
Free Event with only one Attendee |
...
Let's start with page 1 - what URL Parameters affect that. I'm not going to go into ALL parameters and settings, just the ones I need for this project right now.
...
The Standard Credit Card Button on the Payment Form that shows the Payment Form as the external users sees it uses the following URL Parameters
- /payments/AAkPay__eventsRegistration?
- payMSetting - the Merchant Facility
- payMType - the Payment Form
- cmid - the Campaign
NOTE: If you click the URL from the Upcoming Events Widget or the Calendar, it only has the Campaign ID as the Parameter. This is because the PF and MF are linked to the Campaign, so you can just use the Campaign.
This is the very basic details to show Page 1.
...
I set up a URL Token with a link to the Payment Form (and therefore MF), and add a link to the Campaign. I either set any other options as being exactly the same as the Payment form, or not set them, so there is NOTHING on the URL Token that should change the look or behaviour of the events or payment forms.
I click on the Short URL in the URL Token screen and it does NOT do what I expect - it just goes right to the Payment Form. I would Like to use URL Tokens with Events also. I would like there to be a "This is an Event" checkbox, and it knows that the Campaign I linked to is the Event Campaign, and shows me the Event page. But I guess that URL Tokens are not for that purpose.
So let's try using the Standard Events URL "/payments/AAkPay__eventsRegistration?" instead of the URL shown in the Full Text URL of the Token. Nope, it doesn't work - it shows the events form, but no details, because it is not picking up a Campaign. Let's try adding a cmid to the end. OK, that works.
So the parameters are:
- /payments/AAkPay__eventsRegistration?
- key - from the URL Token
- Token - from the URL Token
- cmid - the Campaign
Step 3
So now, I want to use the above method to try to manipulate the Payment Form on Events via the URL Token. My Business Case is - for some people I want to allow them to do Invoice Me and some people I only want to allow them to do Credit Cards - eg existing clients can be invoiced, but I want ALL the attendees to be on the same Campaign. So I want the URL Token to override the Payment form to not allow Invoice Me - that is the URL that will be shown to non existing clients.
So now I modify the URL Token to remove the Invoice Me option.
Parameters are exactly the same as above, but the URL Token has been modified.
Yes, that works - the Payment form is shown with no Invoice Me option. Good.
So, I can set up two URL Tokens linked to that Payment Form - one including Invoice Me and one excluding it. Or I can use one URL Token and use one with Parameters. I think two URL Tokens is more self-documenting, as you can put the reason for the Token in the description.
Step 4
Now, I just need to include the option to turn off the Campaign Overview on the Payment Form.