latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Return Parameters Expected in Custom Gateway

Home Forums Community Forum Return Parameters Expected in Custom Gateway

This topic contains 1 reply, has 2 voices. Last updated by  Jason (Lead Developer) 3 years, 10 months ago.

Topic Author Topic
Posted: Friday Feb 15th, 2013 at 3:24 pm #41897

Hi,

I wrote a s2member payment gateway module for ogone.
I checked the logs and saw, that PayPal seems to return different parameters for an accepted no recurring payment.

This is the current output for my module in the s2m log file:

PHP v5.2.17 :: WordPress® v3.5 :: s2Member® v130123 :: s2Member® Pro v130123
Memory 43.06 MB :: Real Memory 43.75 MB :: Peak Memory 43.35 MB :: Real Peak Memory 43.75 MB
www.extrarot.com/?s2member_paypal_notify=1&s2member_paypal_proxy=viveumtest&s2member_paypal_proxy_verification=###d&custom=www.extrarot.com&
User-Agent: WordPress/3.5; http://www.extrarot.com
array (
  'custom' => 'www.extrarot.com',
  'orderID' => '51115eef65f7c~217.50.246.78',
  'currency' => 'EUR',
  'amount' => '100',
  'ACCEPTANCE' => 'test123',
  'STATUS' => '9',
  'CN' => 'dg',
  'TRXDATE' => '02/05/13',
  'PAYID' => '18971440',
  'NCERROR' => '0',
  'ECI' => '7',
  'IP' => '217.50.246.78',
  'no_shipping' => '1',
  'no_note' => '1',
  'item_name' => 'Premium-Girl für 1 Monat.',
  'item_number' => '5',
  'invoice' => '51115eef66131~217.50.246.78',
  'on0' => 'Referencing Customer ID',
  'os0' => '1',
  'on1' => 'Customer IP Address',
  'os1' => '217.50.246.78',
  'a3' => '10000',
  'p3' => '1',
  't3' => 'Monat',
  'txn_type' => 'web_accept',
  'SHASIGN' => 'D6002462DF6279D0ED6B47EFFB72433D9881E941',
  'proxy_verified' => 'viveumtest',
  's2member_log' => 
  array (
    0 => 'IPN received on: Tue Feb 5, 2013 7:35:32 pm UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( `$_SERVER["HTTP_HOST"]` ) validated.',
    3 => 'Ignoring this IPN request. The `txn_type/status` does NOT require any action on the part of s2Member.',
  ),
  'subscr_gateway' => 'viveumtest',
  's2member_paypal_proxy' => 'viveumtest',
  's2member_paypal_proxy_verification' => '###',
)

I have some questions regarding some post variables.
1. Which status code do I have to send, if the payment provider sent status is okay?
2. The txn type is okay, or?
3. Are the other variables, which are getting sent, okay?

Thanks

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Monday Feb 18th, 2013 at 4:10 pm #42337
Staff Member

Thanks for the heads up on this thread :-)

While we can’t offer assistance with custom code, I will try to point you in the right direction here.
See: s2Member® » Support Policy

The payment status should be: payment_status=Completed

See also: Dashboard -› s2Member® -› PayPal® Options -› PayPal® IPN Integration
Check this sub-section please: IPN w/ Proxy Key (optional, for 3rd-party integrations)

POST variables should follow PayPal® standards.
Please see: PayPal’s IPN/PDT reference guide for full documentation.
Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.