Botium - Handle inputs from adaptive cards - chatbot

I am trying to test the adaptive cards to generate a button click. I have a "Status" button in the adaptive card.
I tried the convo provided in the following sample
https://github.com/codeforequity-at/botium-connector-directline3/blob/master/samples/convo/spec/convo/adaptive.convo.txt
When I use the following convo
#me
BUTTON card Status
botium seem to ignore card and sends "card Status" as a text
Is this something to do with the directline connector ? how can i test the adaptive card inputs ?

"card" is not a magic word there. It could be (yes newline where missing):
#me
BUTTON Hello World!
How the buttons are handled, depends on your backend, you have to setup Botium correspondingly. You can read about it here.

Related

ZVT Terminal Transaction Declined From ECR

I have managed to create connection and to send data to ZVT Terminal but it appears problem in the end of the transaction, the first step is to send amount to the terminal which I do like this:
cn.write('\x06\x01\x0f\x04\x00\x00\x00\x00\x02\x00\x19\x40\x06\x04\x40\x02\xff\x00');
then after swiping card in terminal it requires to enter the pin of the card which is good but when I press OK button in terminal after entering the PIN CARD then I get this message Transaction OK then immediately changes the screen to Transaction Declined From ECR.
If someone has experience with ZVT terminal would be good to help me.
What do you mean exactly with "PIN CARD"? This cardtype does not exist in the list of ZVT-card-types (in chapter 10 of the ZVT protocol). You can use any card type from this list ..but the provider has to enable this type on a terminal. I.e. some terminals read "fleet cards" and some don't - you cannot enable this by yourself, it has to be done by the provider!

Create Customer Refund from a Return Authorization

How can I create a Customer Refund record from the Return Authorization form?
I'd like to intercept the action associated with the Refund button on the Return Authorization form, but I'm not sure how to do that.
Short of that I've tried adding a "Customer Refund" button onto the Return Authorization from using a Workflow. That doesn't seem to work, I can never get the button to show on the form. I've added a single "State 1" to the workflow with an Add Button with a label of "Customer Refund" that triggers on "Before Record Load". So far the button never shows up on the form.
Copied from original comment: I think that is controlled by the "Custom Form" selection. I believe by default, there are two standard forms for a Return Authorization: Standard Return Authorization - Cash and Standard Return Authorization - Credit. The form you select determines the workflow for refunding. Try switching the Custom Form to the Credit version

Are there any changes to IPN params with Enhanced Recurring Payments

I'm using Paypal Website Payments Standard to accept recurring payments, but thinking of upgrading to "Enhanced Recurring Payments" to accept recurring payments from people without paypal accounts. I want to know, what if any are the changes to the APIs? Specifically, do the IPN messages differ at all? I can't find any information on how Enhanced Recurring Payments changes it, if at all.
If anybody knows, or can post a sample IPN for an Enhanced Recurring Payment without a PayPal account, that would be great!
There is a difference of only one variable between the IPN for PayPal Payments and the Credit card Payments . For the credit IPN you will receive an extra variable "receipt_id" in addition to the other variables . I have posted the two sample IPN's below :
ERP IPN when somebody pays via credit card option
mc_gross=1.00 &protection_eligibility=Eligible &address_status=confirmed &payer_id=ZQSC4
4KE3MPNE &address_street=3710 Spring Haven Trail ada &payment_date=07:49:47 Sep 29, 2014 PDT
&payment_status=Completed &charset=UTF-8 &address_zip=07054 &first_name=Eshan &
option_selection1=Small &option_selection2=Red &option_selection3=Value for the text field &
amp;mc_fee=0.33 &address_country_code=US &address_name=Eshan agag &notify_version=3.8 &a
mp;subscr_id=I-KJR1N7DVTSFV &custom=THIS IS CUSTOM VARIABLE FOR SUBSCRIPTION &payer_status=u
nverified &business=XXXXXXXXX &address_country=United States &address_city=Pa
rsippany &verify_sign=Aw6X5vyHflgdAgaJGWvPoCJ8QoI9AGpk50cgjQn5vFFAb.keQURphbSq &payer_email=
jain#jainwain.com &option_name1=First Drop Down &option_name2=Second Drop Down &option_n
ame3=This is Text field &contact_phone=434-343-3434 &txn_id=9E162447RW023401J &payment_t
ype=instant &last_name=agag &address_state=NJ &receiver_email=XXXXXXXXXX &
payment_fee=0.33 &receiver_id=XXXXXXXXX &txn_type=subscr_payment &item_name=Passing
custom field in subs button to see if it comes in IPN and show up in Account &mc_currency=USD &a
mp;residence_country=US &test_ipn=1 & **receipt_id=3610-4109-0310-2116** &transaction_subject
=Passing custom field in subs button to see if it comes in IPN and show up in Account &payment_g
ross=1.00 &ipn_track_id=42d902b155b6d
IPN when someone pays via PayPal
mc_gross=1.00 &invoice= 12345678 &protection_eligibility=Eligible &address_status=confir
med &payer_id=XXXXXXXXXX &address_street=cxas asa &payment_date=09:40:46 Sep 29, 2014
PDT &payment_status=Completed &charset=UTF-8 &address_zip=95616 &first_name=Eshan P
ersonal Test &option_selection1=Small &option_selection2=Red &option_selection3=Using th
e text field as the hidden one and also passed invoice id &mc_fee=0.33 &address_country_code
=US &address_name=Eshan Personal Test Account &notify_version=3.8 &subscr_id=I-79KEGCFRB
8V6 &custom=THIS IS CUSTOM VARIABLE FOR SUBSCRIPTION &payer_status=verified &business=XXXXXXX
&address_country=United States &address_city=FL &verify_sign=ABoC7zeo
JKOS8-FgzxlPH0pKFIpkABi1td4dId5Vndd1boMDXpvdWXfX &payer_email=XXXXXXXXX &option_n
ame1=First Drop Down &option_name2=Second Drop Down &option_name3=This is Text field &co
ntact_phone=408-767-7151 &txn_id=5LX310552A647342M &payment_type=instant &last_name=Acco
unt &address_state=FL &receiver_email=XXXXXXX &payment_fee=0.33 &receiv
er_id=XXXXXXX &txn_type=subscr_payment &item_name=Passing custom field in subs button
to see if it comes in IPN and show up in Account &mc_currency=USD &residence_country=US &
;test_ipn=1 &transaction_subject=Passing custom field in subs button to see if it comes in IPN a
nd show up in Account &payment_gross=1.00 &ipn_track_id=80ffac6da5284
I have attached Screen Shot also :

Multiple option of payment on paypal

I did a button of 3 options for payment (Buy Now) on PayPal, and when I pasted the code on my website.
Everything looks ok until you click on Buy now, It's transfer to error code on PayPal.
This is the link for the website: http://compx.co.il/?page_id=43
The error code that I get is:
1.Can not process your request at this time. Return to CompX IT Services and try another option.
2. PayPal can not process this transaction because of a problem on the site of the seller. Contact the seller directly to resolve this issue.
Any suggestion?
Regards,
Dvir
It's probably a character set issue. The default character set doesn't recognize them so you can fix this problem by changing the text of your option values or by changing the "charset" you're posting to PayPal.
You can follow these steps to modify the character set within your PayPal account:
- Log into your PayPal account at https://www.paypal.com
- Click the Profile link
- Click the 'Language Encoding' link under the Selling Preferences column
- Click the gray 'More Options' button
- Choose the same encoding you are using for your data off your site
- Select 'Yes' for 'Do you want to use the same encoding for data sent from PayPal to you (e.g., IPN, downloadable logs, emails)?'
- Click 'Save'
You can also define the charset value in the button code to match the charact values you have set in your options.

Returning from PayPal to the page that called it

I am hoping someone can help me with the following. I have a Buy Now button on a child dialog. Buy Now button displays PayPal page correctly. Now I am trying to do I cannot find info on it. I would like PayPal to return to the child dialog with a variable that will indicate success (payment made) or failure (payment cancelled by buyer). Is this possible?
The flow works like this:
Member logs in to my site
Member makes purchase via paypal
Member is added to a raffle prize.
The child window (dialog) remains open as PayPal is opened in another page. Regardless of whether the payment is successful or cancelled/ failed I would like to return to the child window with a value indicating the result of the payment. If the result is a success then some code is performed. If not then nothing is done and the child window remains open.
Bruno
You need to add a return url input <INPUT TYPE="hidden" NAME="return" value="URLspecificToThisTransaction">, look here https://cms.paypal.com/uk/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_formbasics under Setting The Return URL on Individual Transaction heading
You also need Instant Payment Notification – notify_url
Instant Payment Notification comprises three parts:
Someone pays you.
PayPal POSTs FORM variables to a URL you specify that runs a program to process the variables.
You validate the notification.
look here https://www.paypalobjects.com/webstatic/en_US/developer/docs/pdf/ipnguide.pdf