AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 11.10.2013, 03:12   #1  
Blog bot is offline
Blog bot
Участник
 
25,459 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: AX 2012 R2 for Retail - Configuring POS for test mode with Dynamics Online payment service
Источник: http://blogs.msdn.com/b/axsupport/ar...t-service.aspx
==============

There is not an option within the POS Hardware Profile to set the POS into test mode for credit card processing tests. Thus we need to run scripts to update the hardware profile in the POS database to recognize and put POS into a credit card processing test mode. Very similar steps can also be performed for AX 2012 R1 with exclusion of steps 32-36 as the XML string is new to R2 and the IsTestMode property was not included. The IsTestMode property is being added to the new R3 release.

This test mode will allow you to see credit card transactions in Dynamics Online. But this is not a full test to the payment provider as the test transactions stop at Dynamics Online. In order to test a card all the way through Dynamics Online to you payment provider, you need to be running in production mode and put through a $1 transaction with a valid credit card.

The steps below will walk you through connecting a payment service (demo or production) that is already set up in Dynamics Online to your POS register in a test mode.

1. Go to www.dynamicsonline.com
2. Select For Customers.



3. Log in with a Microsoft Account (also known as Windows Live ID).
NOTE: If this auto logs you in with an account that is saved in the browser that is not valid for Dynamics Online, go to www.live.com and sign out first.
4. Select Service List in the left navigation pane.
5. Find the payment service that you would like to link to your AX company.
6. Copy the Service ID from ID field.



7. Leave this window open and switch to AX.
8. Go to: Retail >> Setup >> POS >> Profiles >> Hardware profiles
9. Either select an existing profile to modify it, or click New to create a new hardware profile with a new name.
10. Expand the EFT service fast tab
11. Select Payment Connector as the EFT Service
12. Select the profile version of the POS
13. Enter in the Microsoft account and Microsoft account password.
NOTE: This is also known as your Windows Live ID. The user entered here must also be set up with access to that payment service. This can be set up in the Dynamics Online partner or customer portal.
For steps on setting up user roles, click the following link:
http://blogs.msdn.com/b/axsupport/ar...ser-roles.aspx
14. The Environment field is already populated as PROD and this should be left as is.



15. Highlight and copy the entire Public key. As a test, paste the contents into a text document to ensure it copied the contents properly. This is a fairly large key and at times this has a tendency to copy the fields in the form instead of the key. If this happens, simply close the payment services window and reopen it to try the copy again.
16. Switch back to the Dynamics Online customer portal.
17. Click User management in the navigation pane.
18. Click New System User



19. Paste in the Public Key into the Public Key field. (the contents of this field will not be visible after saving the system user)



20. (Optional) Change First and Last name. I recommend doing this to know which entity this system user is for if you have more than one payment service set up.
21. Click Save.
22. Select the System User we just created by placing a checkmark next to it.
23. Click Edit.
24. Add the specific system user role for that payment service or all roles to the Selected Roles by clicking on the >> sign.



25. Click Save.
26. Switch back to the AX
27. Go to: Retail >> Periodic >> Data distribution >> Distribution scheduler
28. Select the A-1090 or N-1090 job to update the POS with the hardware profile update.
29. Click Run directly

30. Open SQL Server Management Studio to process 2 update scripts to configure POS for test mode.
31. Run the following script against the POS database.
NOTE: Running a N-1090 after this update will revert POS back into production mode.
- Change the POSDB to your POS database name.
- Change the HW001 to the correct hardware profile name.

UPDATE [POSDB]..RETAILHARDWAREPROFILE set EFTTESTMODE = 1 WHERE PROFILEID = 'HW001'

32. Run the SELECT script below and extract the XML data from the column EFTCONNECTORPROPERTIES.
- Change the POSDB to your POS database name.
- Change the HW001 to the correct hardware profile name.

SELECT EFTCONNECTORPROPERTIES FROM [POSDB]..RETAILHARDWAREPROFILE WHERE PROFILEID = 'HW001'

33. Paste this property into a text editor to save the contents for later in case you need the original string.
34. Paste the contents into a New Query in SQL.
35. Add the property below to the end of the XML string right before the last closing of ]]>

TransactionData IsTestMode String true 1 0001-01-01T00:00:00 None false false false false 1 10

36. Add this updated XML string to the script below inside the quote and run the update script.
- Change the POSDB to your POS database name.
- Change the HW001 to the correct hardware profile name.

UPDATE [POSDB]..RETAILHARDWAREPROFILE SET EFTCONNECTORPROPERTIES = 'insert new XML string here' WHERE PROFILEID = 'HW001'



37. Start POS or restart POS (just the POS application) if POS was already open.
38. Process a test transaction with the Pay Card tender.


ADDITIONAL NOTES:
1. if you receive the error message below, this means that there is an issue with the XML string that was updated.
The authorization could not be completed.
Error code: There is an error in the XML document (1,2).
Error message:

To resolve this, you will need to use the saved XML string in step 33 (or grab the original from AX HQ) to go through steps 34-38 to recreate the updated XML string at POS again. In the event that things get corrupt and mixed up, it may be easier to just create a new hardware profile and start over with the script updates on the new profile.

2. Save the scripts from Steps 31 and 36 in case you want to use payment services at the POS in test mode again.

3. To revert out of test mode at the POS, you will only need to run the 1 script or run the N-1090 job.
- Change the POSDB to your POS database name.
- Change the HW001 to the correct hardware profile name.

UPDATE [POSDB]..RETAILHARDWAREPROFILE set EFTTESTMODE = 0 WHERE PROFILEID = 'HW001'






Источник: http://blogs.msdn.com/b/axsupport/ar...t-service.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 14 Blog bot Dynamics CRM: Blogs 0 12.07.2013 07:13
Microsoft Dynamics CRM Team Blog: Impact of Dynamics CRM December 2012 Service Update and SharePoint Online Service Update on CRM-SharePoint Integration Blog bot Dynamics CRM: Blogs 0 09.01.2013 01:11
emeadaxsupport: Final Microsoft Dynamics AX 2012 R2 Content Available! Blog bot DAX Blogs 0 04.12.2012 06:12
DAX: A sneak peek tour: 4 Business Benefits of Microsoft Dynamics AX 2012 R2 Blog bot DAX Blogs 0 03.12.2012 11:11
emeadaxsupport: New Content for Microsoft Dynamics AX 2012 : October 2011 Blog bot DAX Blogs 0 27.10.2011 17:11
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 00:44.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.