Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17040

Re: Need help with two-way script

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: Need help with two-way script
Date 2016-09-09 06:54 +0200
Message-ID <e3etjlFklhfU1@mid.individual.net> (permalink)
References <XnsA67CBF5BC96D8arbpenyahoocom@213.239.209.88>

Show all headers | View raw


On 09/08/2016 03:48 AM, Adrienne Boswell wrote:

> Here is the scenario.  A customer is at the checkout page of an online 
> store, example.com. They would put in their email address, credit card 
> information, etc., and hit send.
> 
> 1. The site, example.com, sends a post request to 
> https://aloyaltycard.com with the person's email address, their merchant 
> number and total amount of the transation.
> 2. aloyaltycard.com receives the information, does a quick check to 
> verify that the email address is on file and notes the transaction in its 
> db. (I already know how to do this part)
> 3. aloyaltycard.com sends back a verification to example.com that the 
> email address is good and 90% of the transaction amount. (This is where I 
> need help)
> 4. Then example.com completes the tranaction on their end giving the user 
> a 10% discount, which should match up with the 90% aloyaltycard.com sent 
> back in the verification.

With the extra information provided in other answers, I would go with a
soap service, as it's not too difficult to build and most programming
languages has support for it too, which makes the integration somewhat
easy to make.

There is no need to make callbacks to the customer site, as they will
get the answer at once.

It's simple to extend with new requests like adding a way for the
customer site to enlist new members.


There are good example at php.net how to write a simple soap service.


-- 

 //Aho

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Need help with two-way script Adrienne Boswell <arbpen@yahoo.com> - 2016-09-08 01:48 +0000
  Re: Need help with two-way script Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-07 22:51 -0400
    Re: Need help with two-way script "J.O. Aho" <user@example.net> - 2016-09-08 06:29 +0200
      Re: Need help with two-way script bill <william@TechServSys.com> - 2016-09-08 07:50 -0400
        Re: Need help with two-way script Adrienne Boswell <arbpen@yahoo.com> - 2016-09-08 17:39 +0000
    Re: Need help with two-way script Adrienne Boswell <arbpen@yahoo.com> - 2016-09-08 17:43 +0000
      Re: Need help with two-way script Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-08 14:05 -0400
        Re: Need help with two-way script "J.O. Aho" <user@example.net> - 2016-09-08 22:06 +0200
          Re: Need help with two-way script Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-08 16:59 -0400
            Re: Need help with two-way script (PCI DSS) "J.O. Aho" <user@example.net> - 2016-09-09 06:32 +0200
              Re: Need help with two-way script (PCI DSS) Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-09 10:05 -0400
                Re: Need help with two-way script (PCI DSS) "J.O. Aho" <user@example.net> - 2016-09-09 18:21 +0200
        Re: Need help with two-way script Adrienne Boswell <arbpen@yahoo.com> - 2016-09-08 20:17 +0000
          Re: Need help with two-way script Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-08 17:03 -0400
          Re: Need help with two-way script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-10 12:04 +0200
      Re: Need help with two-way script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-10 11:54 +0200
  Re: Need help with two-way script Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-08 12:54 +0100
  Re: Need help with two-way script "J.O. Aho" <user@example.net> - 2016-09-09 06:54 +0200
  Re: Need help with two-way script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-09-10 09:04 +0200
    Re: Need help with two-way script Jerry Stuckle <jstucklex@attglobal.net> - 2016-09-10 10:19 -0400
  Re: Need help with two-way script He <y12983@mail.ee> - 2022-02-02 02:23 -0800

csiph-web