Jump to content

Why does this select wrong payment option (addorder)


Deffe

Recommended Posts

Hi

 

Im using the api(addorder) and Im able to select payment option if I only add domains. But if I add a domain and a service it results in that the order Always becomes a samport creditcard payment even though I select invoice.

 

Here is two outputs of the respective arrays:

This is the one that always results in Samport (CC) even though I select invoice:

Array ( [action] => addorder

[clientid] => 111

[clientip] => 11.111.111.111

[paymentmethod] => invoice

[domain[0]] => asdf.se

[eppcode[0]] =>

[domaintype[0]] => register

[regperiod[0]] => 1

[pid[0]] => 1

[billingcycle[0]] => annually

)

 

This is the one that works but Only with 1 domain otherwise I will get Samport CC always:

Array ( [action] => addorder

[clientid] => 1111

[clientip] => 11.111.111.111

[paymentmethod] => invoice

[domain[0]] => asdf.se

[eppcode[0]] =>

[domaintype[0]] => register

[regperiod[0]] => 1

)

 

I also tried to add [paymentmethod[0]] => invoice

into the array to see if I had to add the payment options for each and every service but that resulted in that the api did not accept the order at all. this is the mentioned example that did not work either:

 

Array (

[action] => addorder

[clientid] => 1111

[clientip] => 11.111.111.111

[paymentmethod] => invoice

[domain[0]] => asdf.se

[eppcode[0]] =>

[domaintype[0]] => register

[regperiod[0]] => 1

[pid[0]] => 1

[billingcycle[0]] => annually

[paymentmethod[0]] => invoice )

 

how do I solove this? What am I missing, and why is it selecting samport (cc) even though my array clearly states that it should use invoice

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated