This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
1
Web Server - Ask For Help / Re: Redirect URL received after POST, how to handle (YOCO)
« on: May 13, 2024, 06:30:46 AM »
Hi,
Thanks for replies and advice,
Have it working quite nicely.
regards
Johan
Thanks for replies and advice,
Have it working quite nicely.
regards
Johan
2
Web Server - Ask For Help / Re: Redirect URL received after POST, how to handle (YOCO)
« on: May 10, 2024, 03:55:17 AM »
Hi,
Plan I'm going with, if I missing the obvious let me know.
Memory NetWebform
In the generate form , call a hidden NetWebClient procedure that handles the POST and return URL to NetWebForm
On the NetWebform, display fields for confirmation and a PAY button with the URL returned by the NetWebClient
If client clicks the button, then they will redirected to the CC Payment page
If there are other ways to handle this, please let me know
Johan
Plan I'm going with, if I missing the obvious let me know.
Memory NetWebform
In the generate form , call a hidden NetWebClient procedure that handles the POST and return URL to NetWebForm
On the NetWebform, display fields for confirmation and a PAY button with the URL returned by the NetWebClient
If client clicks the button, then they will redirected to the CC Payment page
If there are other ways to handle this, please let me know
Johan
3
Web Server - Ask For Help / Redirect URL received after POST, how to handle (YOCO)
« on: May 10, 2024, 02:31:13 AM »
Hi,
I am currently trying to implement a new secure credit card payment system, YOCO
It's a 2 step process, initiated by a POST, with the bearer security, amount, currency and then on the success of the POST,
one of the return data fields is a redirect URL ,
which I must direct the user to.
This redirected URL is a page on the providor site, where the user will enter CC, Expiry etc,
on success/fail/cancel , one of my URL will be called
Question is how to handle the re-direct after the receipt of the successful POST?
TIA for any info
Johan
I am currently trying to implement a new secure credit card payment system, YOCO
It's a 2 step process, initiated by a POST, with the bearer security, amount, currency and then on the success of the POST,
one of the return data fields is a redirect URL ,
which I must direct the user to.
This redirected URL is a page on the providor site, where the user will enter CC, Expiry etc,
on success/fail/cancel , one of my URL will be called
Question is how to handle the re-direct after the receipt of the successful POST?
TIA for any info
Johan
4
Web Server - Ask For Help / Re: Inbound stream from Postmark - Solved
« on: March 31, 2024, 03:43:54 AM »
Hi,
p_web.RequestData.DataStringtheory
contains the post data in a stringtheory obect
NetWebServerRequestDataType group,type
WebServer &NetWebServer ! Pointer back to our Web Server object
FromIP like (Net:SimplePacketType.FromIP)
OnSocket like (Net:SimplePacketType.OnSocket)
SockID like (Net:SimplePacketType.SockID)
DataStringTheory &StringTheory
RequestMethodType long ! e.g. NetWebServer_POST or NetWebServer_GET
SiteId long
SessionId String(Net:MaxSessionLength) ! used when deleting sessions
end
Assign from stringtheory to stringtheory object
SomeLoadString.SetValue(p_web.RequestData.DataStringtheory)
really cool and easy once you get the how and what to use
Johan
p_web.RequestData.DataStringtheory
contains the post data in a stringtheory obect
NetWebServerRequestDataType group,type
WebServer &NetWebServer ! Pointer back to our Web Server object
FromIP like (Net:SimplePacketType.FromIP)
OnSocket like (Net:SimplePacketType.OnSocket)
SockID like (Net:SimplePacketType.SockID)
DataStringTheory &StringTheory
RequestMethodType long ! e.g. NetWebServer_POST or NetWebServer_GET
SiteId long
SessionId String(Net:MaxSessionLength) ! used when deleting sessions
end
Assign from stringtheory to stringtheory object
SomeLoadString.SetValue(p_web.RequestData.DataStringtheory)
really cool and easy once you get the how and what to use
Johan
5
Web Server - Ask For Help / Re: Inbound stream from Postmark
« on: March 30, 2024, 04:03:06 AM »
Hi,
Forgot to add,
the ContentType is set to application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web.RequestContentType:application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web._UserAgent:postmark
below the post data from the server window
POST /ReceiveStatements HTTP/1.1
Host: www.vineyardconnection.co.za
X-PM-Webhook-Trace-Id: c2d5bcbc-1eff-4695-bfe9-c2be112ce564
X-PM-Webhook-Event-Id: test-hook
X-PM-Retries-Remaining: 0
Expect: 100-continue
Connection: close
User-Agent: Postmark
Content-Type: application/json
Content-Length: 1702
{
"Date": "Sat, 30 Mar 2024 11:35:48 +0000",
"From": "support@postmarkapp.com",
"FromName": "Postmarkapp Support",
"FromFull": {
"Email": "support@postmarkapp.com",
"MailboxHash": "",
"Name": "Postmarkapp Support"
},
"HtmlBody": "<html><body><p>This is a test html body.</p></body></html>",
"MailboxHash": "SampleHash",
"MessageID": "00000000-0000-0000-0000-000000000000",
"MessageStream": "inbound",
"ReplyTo": "replyto@example.com",
"Subject": "Test subject",
"Tag": "TestTag",
"TextBody": "This is a test text body.",
"Headers": [
{
"Name": "X-Header-Test",
"Value": ""
}
],
"To": "\"Firstname Lastname\" <mailbox+SampleHash@inbound.postmarkapp.com>",
"ToFull": [
{
"Email": "mailbox+SampleHash@inbound.postmarkapp.com",
"MailboxHash": "SampleHash",
"Name": "Firstname Lastname"
}
],
"Cc": "\"First Cc\" <firstcc@postmarkapp.com>, secondCc@postmarkapp.com",
"CcFull": [
{
"Email": "firstcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Cc"
},
{
"Email": "secondCc@postmarkapp.com",
"MailboxHash": "",
"Name": ""
}
],
"Bcc": "\"First Bcc\" <firstbcc@postmarkapp.com>",
"BccFull": [
{
"Email": "firstbcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Bcc"
}
],
"StrippedTextReply": "This is the reply text",
"OriginalRecipient": "mailbox+SampleHash@inbound.postmarkapp.com",
"Attachments": [
{
"Name": "test.txt",
"Content": "VGhpcyBpcyBhdHRhY2htZW50IGNvbnRlbnRzLCBiYXNlLTY0IGVuY29kZWQu",
"ContentLength": 45,
"ContentType": "text/plain",
"ContentID": ""
}
]
}
Johan
Forgot to add,
the ContentType is set to application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web.RequestContentType:application/json
[st][3] [netTalk][thread=3] TVCWEB - p_web._UserAgent:postmark
below the post data from the server window
POST /ReceiveStatements HTTP/1.1
Host: www.vineyardconnection.co.za
X-PM-Webhook-Trace-Id: c2d5bcbc-1eff-4695-bfe9-c2be112ce564
X-PM-Webhook-Event-Id: test-hook
X-PM-Retries-Remaining: 0
Expect: 100-continue
Connection: close
User-Agent: Postmark
Content-Type: application/json
Content-Length: 1702
{
"Date": "Sat, 30 Mar 2024 11:35:48 +0000",
"From": "support@postmarkapp.com",
"FromName": "Postmarkapp Support",
"FromFull": {
"Email": "support@postmarkapp.com",
"MailboxHash": "",
"Name": "Postmarkapp Support"
},
"HtmlBody": "<html><body><p>This is a test html body.</p></body></html>",
"MailboxHash": "SampleHash",
"MessageID": "00000000-0000-0000-0000-000000000000",
"MessageStream": "inbound",
"ReplyTo": "replyto@example.com",
"Subject": "Test subject",
"Tag": "TestTag",
"TextBody": "This is a test text body.",
"Headers": [
{
"Name": "X-Header-Test",
"Value": ""
}
],
"To": "\"Firstname Lastname\" <mailbox+SampleHash@inbound.postmarkapp.com>",
"ToFull": [
{
"Email": "mailbox+SampleHash@inbound.postmarkapp.com",
"MailboxHash": "SampleHash",
"Name": "Firstname Lastname"
}
],
"Cc": "\"First Cc\" <firstcc@postmarkapp.com>, secondCc@postmarkapp.com",
"CcFull": [
{
"Email": "firstcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Cc"
},
{
"Email": "secondCc@postmarkapp.com",
"MailboxHash": "",
"Name": ""
}
],
"Bcc": "\"First Bcc\" <firstbcc@postmarkapp.com>",
"BccFull": [
{
"Email": "firstbcc@postmarkapp.com",
"MailboxHash": "",
"Name": "First Bcc"
}
],
"StrippedTextReply": "This is the reply text",
"OriginalRecipient": "mailbox+SampleHash@inbound.postmarkapp.com",
"Attachments": [
{
"Name": "test.txt",
"Content": "VGhpcyBpcyBhdHRhY2htZW50IGNvbnRlbnRzLCBiYXNlLTY0IGVuY29kZWQu",
"ContentLength": 45,
"ContentType": "text/plain",
"ContentID": ""
}
]
}
Johan
6
Web Server - Ask For Help / Inbound stream from Postmark
« on: March 30, 2024, 03:38:44 AM »
Hi,
I have created my NetWebPage to receive data (JSON) from Postmark,
as well as the data structures and code using the CodeWriter
but am a little confused as to how to get the data to load into the json data structure?
p_web.?
p_web.GetValue('json') , gives me nothing,
do I need to set some settings first, or which p_web method do I use to return the data to load into
SomeLoadString.SetValue(p_web.GetValue('json'))
json.start()
json.SetTagCase(jf:CaseAsIs)
json.Load(element,SomeLoadString) ! Load From a StringTheory object
This seems to give me an empty string
thanks
Johan
I have created my NetWebPage to receive data (JSON) from Postmark,
as well as the data structures and code using the CodeWriter
but am a little confused as to how to get the data to load into the json data structure?
p_web.?
p_web.GetValue('json') , gives me nothing,
do I need to set some settings first, or which p_web method do I use to return the data to load into
SomeLoadString.SetValue(p_web.GetValue('json'))
json.start()
json.SetTagCase(jf:CaseAsIs)
json.Load(element,SomeLoadString) ! Load From a StringTheory object
This seems to give me an empty string
thanks
Johan
7
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 26, 2024, 06:36:57 AM »
Hi Bruce
Yes, <FORM> was off on the memory form,
I mailed you an example app with the problem.
regards
Johan
Yes, <FORM> was off on the memory form,
I mailed you an example app with the problem.
regards
Johan
8
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 24, 2024, 11:51:12 PM »
Hi Bruce
That's what I was thinking,
but for some reason does not seem to save, on inserts or on changes
So was thinking it got lost somewhere in the population of the form, but will duplicate in an example app and see if it does the same thing.
thanks
Johan
That's what I was thinking,
but for some reason does not seem to save, on inserts or on changes
So was thinking it got lost somewhere in the population of the form, but will duplicate in an example app and see if it does the same thing.
thanks
Johan
9
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 23, 2024, 06:18:36 AM »
Hi Bruce
Thanks for the info,
when I call the Memory form, with Insert action or from the browse,
is there a way to pass on the action/stage to the Table Form from the Memory Form
regards
Johan
Thanks for the info,
when I call the Memory form, with Insert action or from the browse,
is there a way to pass on the action/stage to the Table Form from the Memory Form
regards
Johan
10
Web Server - Ask For Help / Re: Heading on a form / TABLE form on a MEMORY form?
« on: March 16, 2024, 02:10:19 AM »
Hi,
I have placed a TABLE form on a MEMORY form, and all seems to work.
just not sure if something will come up and if the method is sound and safe for all situations
thanks
Johan
I have placed a TABLE form on a MEMORY form, and all seems to work.
just not sure if something will come up and if the method is sound and safe for all situations
thanks
Johan
11
Web Server - Ask For Help / Heading on a form / TABLE form on a MEMORY form?
« on: March 16, 2024, 12:58:34 AM »
Hi,
Perhaps 2 questions in 1
1)
I've seen several posts and it does not seem as if there is a simple solution to change the heading text after the form is generated.
Is there simple way to change heading on a form?
2)
Is there a way to wrap a TABLE form in a MEMORY form, but still have the TABLE function normally?
IOW use the TABLE form as an update form from a browse, but still wrapped inside the MEMORY form?
Thinking is to use the wrapping MEMORY form to populate fields above the TABLE form tab
thanks
Johan
Perhaps 2 questions in 1
1)
I've seen several posts and it does not seem as if there is a simple solution to change the heading text after the form is generated.
Is there simple way to change heading on a form?
2)
Is there a way to wrap a TABLE form in a MEMORY form, but still have the TABLE function normally?
IOW use the TABLE form as an update form from a browse, but still wrapped inside the MEMORY form?
Thinking is to use the wrapping MEMORY form to populate fields above the TABLE form tab
thanks
Johan
12
Web Server - Ask For Help / Re: User feedback?
« on: March 16, 2024, 12:37:56 AM »
Hi osquiabro/bruce
thanks for info,
just to understand,
on the memory form how are the 2 buttons setup?
and what action will close the memory form and end up in the gotfocusback in the 'calling' procedure
any examples that you possibly can point me to that has similar action?
thanks
Johan
thanks for info,
just to understand,
on the memory form how are the 2 buttons setup?
and what action will close the memory form and end up in the gotfocusback in the 'calling' procedure
any examples that you possibly can point me to that has similar action?
thanks
Johan
13
Web Server - Ask For Help / User feedback?
« on: March 14, 2024, 01:19:01 AM »
Hi,
For some reason can't figure out how to get a user response when they click a button and act accordingly?
eg. similar to the message function.
'Are you sure you want cancel this action?'
if yes - delete record
if no - leave as is
If I look at the code , it seems as if the Form "Cancel confirmation" message that pops up is part of the form function
Is there a way I can include a custom action in this function?
thanks
Johan
For some reason can't figure out how to get a user response when they click a button and act accordingly?
eg. similar to the message function.
'Are you sure you want cancel this action?'
if yes - delete record
if no - leave as is
If I look at the code , it seems as if the Form "Cancel confirmation" message that pops up is part of the form function
Is there a way I can include a custom action in this function?
thanks
Johan
14
Web Server - Ask For Help / Processing incoming mail via Postmark
« on: February 28, 2024, 01:54:40 AM »Hi
Am trying to process incoming mail being sent to a webhook
The data declaration below is for the attachments on the mail
The "Content" field will contain the attachment.
Total cumulative size for all Inbound attachment files may not exceed 35 MB
How do I change the declaration of "Content" to variable length?
The length is specified in "ContentLength" but I need to change STRING(255) to expect a variable length
After the structure change , would I have to change the loading code?
thanks
Johan
from the postmark docs
],
"Attachments": [
{
"Name": "test.txt",
"Content": "VGhpcyBpcyBhdHRhY2htZW50IGNvbnRlbnRzLCBiYXNlLTY0IGVuY29kZWQu",
"ContentType": "text/plain",
"ContentLength": 45
}
]
generated code and structure from capesoft codewriter
AttachmentsQueueType Queue,Type,Name('Attachments')
Name STRING(255),Name('Name')
Content STRING(255),Name('Content')
ContentType STRING(255),Name('ContentType')
ContentLength Real,Name('ContentLength')
End
json.NewPointer Procedure(*Cstring pGroupName, *CString pColumnName)
! note that pColumnName is the json tag name, not the label. case sensitive.
Code
case pGroupName & '.' & pColumnName
Of 'group.ToFull'
element.ToFull &= NEW ToFullQueueType
Of 'group.CcFull'
element.CcFull &= NEW CcFullQueueType
Of 'group.BccFull'
element.BccFull &= NEW BccFullQueueType
Of 'group.Headers'
element.Headers &= NEW HeadersQueueType
Of 'group.Attachments'
element.Attachments &= NEW AttachmentsQueueType
End
15
Web Server - Ask For Help / Re: VarnishCheck? slightly NTWS related
« on: February 26, 2024, 03:06:15 AM »
Hi Bruce
Thanks!
I did try and follow the link over the weekend but it ended up on the amazon standard website,
BUT
after your suggestion I tried again and this time a form popped up with exactly the required function,
perhaps I mis copied the previous URL.
"Stop unwanted Amazon Route 53 health checks"
thanks for the help,
regards
Johan
Thanks!
I did try and follow the link over the weekend but it ended up on the amazon standard website,
BUT
after your suggestion I tried again and this time a form popped up with exactly the required function,
perhaps I mis copied the previous URL.
"Stop unwanted Amazon Route 53 health checks"
thanks for the help,
regards
Johan