[Skip to main content](#vessel-content)

#   AIM API is missing some parameters

##

- **[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")**
- [![issa.mouawad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile") Topic Author
- [ Offline](/forum/user/38443-issa-mouawad)

Less More

- Posts: 26
- Thank you received: 0
-
-

11 years 2 months ago [\#213273](#213273) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  *[AIM API is missing some parameters](/forum/29-payment-methods/879098-aim-api-is-missing-some-parameters#213273 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  HI I need to perform payment transactions based on AIM API that uses First Data(Payeezy) via Authorize.net payment plugin. I get errors from the gateway that some parameters are missing in the payment request (parameters are :x&#95;fp&#95;sequence, x&#95;fp&#95;timestamp,x&#95;show&#95;form,x&#95;fp&#95;hash) I have looked at the code , at file /plugins/hikashoppayment/authorize/autorize.php in the onAfterOrderConfirm function, I've noticed that the parameters are being filled, but not for AIM API (it's excluded via IF-ELSE) so I tried an ad-hoc solution, and copied the corresponding lines to the IF section, but now the cart crashes as soon as I add items to cart(although this method should not be called until I confirm order) what is the solution to this issue ? how do I include those parameters without breaking anything?")* was created by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3

HI
I need to perform payment transactions based on AIM API that uses First Data(Payeezy) via Authorize.net payment plugin.
I get errors from the gateway that some parameters are missing in the payment request
(parameters are :x_fp_sequence, x_fp_timestamp,x_show_form,x_fp_hash)
I have looked at the code , at file /plugins/hikashoppayment/authorize/autorize.php
in the onAfterOrderConfirm function, I've noticed that the parameters are being filled, but not for AIM API (it's excluded via IF-ELSE) so I tried an ad-hoc solution, and copied the corresponding lines to the IF section, but now the cart crashes as soon as I add items to cart(although this method should not be called until I confirm order)
what is the solution to this issue ? how do I include those parameters without breaking anything?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzkwOTgtYWltLWFwaS1pcy1taXNzaW5nLXNvbWUtcGFyYW1ldGVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 2 months ago [\#213284](#213284) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[AIM API is missing some parameters](/forum/29-payment-methods/879098-aim-api-is-missing-some-parameters#213284 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  HI I need to perform payment transactions based on AIM API that uses First Data(Payeezy) via Authorize.net payment plugin. I get errors from the gateway that some parameters are missing in the payment request (parameters are :x&#95;fp&#95;sequence, x&#95;fp&#95;timestamp,x&#95;show&#95;form,x&#95;fp&#95;hash) I have looked at the code , at file /plugins/hikashoppayment/authorize/autorize.php in the onAfterOrderConfirm function, I've noticed that the parameters are being filled, but not for AIM API (it's excluded via IF-ELSE) so I tried an ad-hoc solution, and copied the corresponding lines to the IF section, but now the cart crashes as soon as I add items to cart(although this method should not be called until I confirm order) what is the solution to this issue ? how do I include those parameters without breaking anything?")*

Hi,

There is a thread which will help you : [ www.hikashop.com/forum/payment-methods/8...ration.html?start=20](http://www.hikashop.com/forum/payment-methods/861488-first-data-gge4-configuration.html?start=20)

Regards

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzkwOTgtYWltLWFwaS1pcy1taXNzaW5nLXNvbWUtcGFyYW1ldGVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")**
- [![issa.mouawad's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile") Topic Author
- [ Offline](/forum/user/38443-issa-mouawad)

Less More

- Posts: 26
- Thank you received: 0
-
-

11 years 2 months ago [\#213316](#213316) by [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")  Replied by *[issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")* on topic *[AIM API is missing some parameters](/forum/29-payment-methods/879098-aim-api-is-missing-some-parameters#213316 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  HI I need to perform payment transactions based on AIM API that uses First Data(Payeezy) via Authorize.net payment plugin. I get errors from the gateway that some parameters are missing in the payment request (parameters are :x&#95;fp&#95;sequence, x&#95;fp&#95;timestamp,x&#95;show&#95;form,x&#95;fp&#95;hash) I have looked at the code , at file /plugins/hikashoppayment/authorize/autorize.php in the onAfterOrderConfirm function, I've noticed that the parameters are being filled, but not for AIM API (it's excluded via IF-ELSE) so I tried an ad-hoc solution, and copied the corresponding lines to the IF section, but now the cart crashes as soon as I add items to cart(although this method should not be called until I confirm order) what is the solution to this issue ? how do I include those parameters without breaking anything?")*

actually it didn't help, no one got the same problem
I am using first Data with the payment plugin Authorize.net as I have mentioned , with API AIM
from the gateway I got these errors

* x_fp_hash : Could not validate the integrity of the payment from the transaction key, x_fp_hash, x_fp_sequence, x_fp_timestamp, x_amount, and (optionally) x_currency_code and x_fee_amount values of the request.

* x_fp_hash : The integrity verification data x_fp_hash is required.

* x_fp_sequence : The sequence parameter x_fp_sequence is missing.

* x_fp_timestamp : The timestamp parameter x_fp_timestamp is required.

* x_fp_timestamp : x_fp_timestamp invalid. Not within 15 minutes of present time: Thu Sep xxxxxx UTC 2015. Expected xxxxxx plus/minus 900, but received .

* x_login : No terminals available for this request

* x_relay_response : Parameter x_relay_response must be empty or TRUE

* x_relay_response : x_relay_response too long. Maximum length is 4

* x_show_form : Parameter x_show_form must be PAYMENT_FORM

* x_show_form : The parameter x_show_form is required

* x_type : No payment form section is compatible with the given x_type.

and when I look at the code , I found this in the file I specified in the main topic
which implies, that these (required) parameters will not be filled for API "AIM" , how can I fix this code? I tried simple copying to IF section, but nothing changed

- [ ![payment.png](/forum/attachment/26292) ](/forum/attachment/26292 "payment.png") [ ](/forum/attachment/26292?download=1 "payment.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzkwOTgtYWltLWFwaS1pcy1taXNzaW5nLXNvbWUtcGFyYW1ldGVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

11 years 2 months ago [\#213318](#213318) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[AIM API is missing some parameters](/forum/29-payment-methods/879098-aim-api-is-missing-some-parameters#213318 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.4.3  HI I need to perform payment transactions based on AIM API that uses First Data(Payeezy) via Authorize.net payment plugin. I get errors from the gateway that some parameters are missing in the payment request (parameters are :x&#95;fp&#95;sequence, x&#95;fp&#95;timestamp,x&#95;show&#95;form,x&#95;fp&#95;hash) I have looked at the code , at file /plugins/hikashoppayment/authorize/autorize.php in the onAfterOrderConfirm function, I've noticed that the parameters are being filled, but not for AIM API (it's excluded via IF-ELSE) so I tried an ad-hoc solution, and copied the corresponding lines to the IF section, but now the cart crashes as soon as I add items to cart(although this method should not be called until I confirm order) what is the solution to this issue ? how do I include those parameters without breaking anything?")*

Hi,

Modifying the code here won't help.
As you say, these parameters are not necessary for AIM, only for SIM.

You can see these error messages:
* x_show_form : The parameter x_show_form is required
* x_show_form : Parameter x_show_form must be PAYMENT_FORM

So your payment gateway tells you that x_show_form should be PAYMENT_FORM and that it should be there.
And if you look at the documentation for authorize.net for that parameter, you can find this:

> x\_show\_form Value: The payment form request.
> Format: PAYMENT\_FORM.
> Notes: This field indicates that the merchant would like to use the payment
> gateway hosted payment form to collect payment data.

[ www.authorize.net/support/SIM\_guide.pdf](http://www.authorize.net/support/SIM_guide.pdf)
That indicates that the x_show_form parameter can only have the PAYMENT_FORM value and that this tells the payment gateway to display the credit card form on the payment gateway payment page (and you can see that this documentation is specifically for SIM, not AIM).

So what all that means is that your payment gateway only supports SIM not AIM. Copying the code for SIM for the AIM mode in the payment gateway won't change that fact and it will just mess up the code.
The solution here is to use SIM.

The following user(s) said Thank You: [issa.mouawad](/forum/user/38443-issa-mouawad "View issa.mouawad's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzkwOTgtYWltLWFwaS1pcy1taXNzaW5nLXNvbWUtcGFyYW1ldGVycz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.047 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
