Paypal pro, recurring profile with cc not with account.

Discussion in 'Payments processing' started by dpcubed, Aug 31, 2011.

  1. dpcubed

    dpcubed New Member

    Joined:
    Aug 31, 2011
    Messages:
    9
    The problem I am having with amember paypal pro is that it creates a recurring profile on paypal when they use a credit card, but not when they use a paypal account.


    I appreciate any help on making it work with both.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Please provide payment debug info.
    You can find it in aMember CP -> Payments -> Edit any recurring payment that was completed using paypal account. At the bottom you will find all messages between paypal and aMember.
  3. dpcubed

    dpcubed New Member

    Joined:
    Aug 31, 2011
    Messages:
    9
    Paypal account payment log

    product_id 1
    paysys_id paypal_pro
    coupon
    action renew
    i_agree 1
    BASKET_PRODUCTS 0=>1
    BASKET_PRICES 1=>65


    USER greghaehl_api1.msn.com
    PWD ****************
    VERSION 56.0
    SIGNATURE ********************************************************
    METHOD SetExpressCheckout
    RETURNURL http://bestroadside.com/amember/plugins/payment/paypal_pro/return.php
    CANCELURL http://bestroadside.com/amember/cancel.php?from=paypal_pro&payment_id=4257
    CALLBACKURL http://bestroadside.com/amember/plugins/payment/paypal_pro/ipn.php
    INVNUM 4257
    NOSHIPPING 1
    LOCALECODE
    CURRENCYCODE USD
    L_NAME0 1 Vehicle
    L_DESC0 $65.00 for each year
    L_AMT0 65
    L_TAXAMT0 0
    L_BILLINGTYPE0 RecurringPayments
    L_BILLINGAGREEMENTDESCRIPTION0 $65.00 for each year
    AMT 65
    ITEMAMT 65
    TAXAMT 0


    TOKEN EC-2Y024258KB632624X
    TIMESTAMP 2011-08-31T13:55:09Z
    CORRELATIONID 3d472909f4023
    ACK Success
    VERSION 56.0
    BUILD 2085867


    USER greghaehl_api1.msn.com
    PWD ****************
    VERSION 56.0
    SIGNATURE ********************************************************
    METHOD GetExpressCheckoutDetails
    TOKEN EC-2Y024258KB632624X


    TOKEN EC-2Y024258KB632624X
    BILLINGAGREEMENTACCEPTEDSTATUS 1
    TIMESTAMP 2011-08-31T13:57:21Z
    CORRELATIONID 88fac1ce26a3c
    ACK Success
    VERSION 56.0
    BUILD 2085867
    EMAIL STLRWMN37@GMAIL.COM
    PAYERID 5UAM45YHHFJN2
    PAYERSTATUS verified
    FIRSTNAME deidre
    LASTNAME patterson
    COUNTRYCODE US
    CURRENCYCODE USD
    AMT 65.00
    ITEMAMT 65.00
    SHIPPINGAMT 0.00
    HANDLINGAMT 0.00
    TAXAMT 0.00
    INVNUM 4257
    INSURANCEAMT 0.00
    SHIPDISCAMT 0.00
    L_NAME0 1 Vehicle
    L_QTY0 1
    L_TAXAMT0 0.00
    L_AMT0 65.00
    L_DESC0 $65.00 for each year
    L_ITEMWEIGHTVALUE0 0.00000
    L_ITEMLENGTHVALUE0 0.00000
    L_ITEMWIDTHVALUE0 0.00000
    L_ITEMHEIGHTVALUE0 0.00000


    USER greghaehl_api1.msn.com
    PWD ****************
    VERSION 56.0
    SIGNATURE ********************************************************
    METHOD GetExpressCheckoutDetails
    TOKEN EC-2Y024258KB632624X


    TOKEN EC-2Y024258KB632624X
    BILLINGAGREEMENTACCEPTEDSTATUS 1
    TIMESTAMP 2011-08-31T13:57:27Z
    CORRELATIONID c1004bffac38b
    ACK Success
    VERSION 56.0
    BUILD 2085867
    EMAIL STLRWMN37@GMAIL.COM
    PAYERID 5UAM45YHHFJN2
    PAYERSTATUS verified
    FIRSTNAME deidre
    LASTNAME patterson
    COUNTRYCODE US
    CURRENCYCODE USD
    AMT 65.00
    ITEMAMT 65.00
    SHIPPINGAMT 0.00
    HANDLINGAMT 0.00
    TAXAMT 0.00
    INVNUM 4257
    INSURANCEAMT 0.00
    SHIPDISCAMT 0.00
    L_NAME0 1 Vehicle
    L_QTY0 1
    L_TAXAMT0 0.00
    L_AMT0 65.00
    L_DESC0 $65.00 for each year
    L_ITEMWEIGHTVALUE0 0.00000
    L_ITEMLENGTHVALUE0 0.00000
    L_ITEMWIDTHVALUE0 0.00000
    L_ITEMHEIGHTVALUE0 0.00000


    USER greghaehl_api1.msn.com
    PWD ****************
    VERSION 56.0
    SIGNATURE ********************************************************
    METHOD DoExpressCheckoutPayment
    TOKEN EC-2Y024258KB632624X
    PAYMENTACTION Sale
    INVNUM 4257
    PAYERID 5UAM45YHHFJN2
    NOSHIPPING 1
    LOCALECODE
    CURRENCYCODE USD
    L_NAME0 1 Vehicle
    L_DESC0 $65.00 for each year
    L_AMT0 65
    L_TAXAMT0 0
    L_BILLINGTYPE0 RecurringPayments
    L_BILLINGAGREEMENTDESCRIPTION0 $65.00 for each year
    AMT 65
    TAXAMT 0
    ITEMAMT 65


    TOKEN EC-2Y024258KB632624X
    TIMESTAMP 2011-08-31T13:57:30Z
    CORRELATIONID 786db2b95d06d
    ACK Success
    VERSION 56.0
    BUILD 2085867
    TRANSACTIONID 90R02675VL467052L
    TRANSACTIONTYPE cart
    PAYMENTTYPE instant
    ORDERTIME 2011-08-31T13:57:29Z
    AMT 65.00
    FEEAMT 1.73
    TAXAMT 0.00
    CURRENCYCODE USD
    PAYMENTSTATUS Completed
    PENDINGREASON None
    REASONCODE None




    USER greghaehl_api1.msn.com
    PWD ****************
    VERSION 56.0
    SIGNATURE ********************************************************
    METHOD CreateRecurringPaymentsProfile
    SUBSCRIBERNAME DEIDRE PATTERSON
    PROFILESTARTDATE 2012-08-31T00:00:00.00Z
    PROFILEREFERENCE 4257-1
    DESC 1 Vehicle
    AUTOBILLAMT AddToNextBilling
    BILLINGPERIOD Year
    BILLINGFREQUENCY 1
    TOTALBILLINGCYCLES 0
    AMT 65
    TAXAMT 0
    CURRENCYCODE USD
    EMAIL SPORTSGAL35@GMAIL.COM
    TOKEN EC-2Y024258KB632624X
    PAYERID 5UAM45YHHFJN2
    PAYERSTATUS verified
    COUNTRYCODE US


    TIMESTAMP 2011-08-31T13:57:33Z
    CORRELATIONID ccababb212f04
    ACK Failure
    VERSION 56.0
    BUILD 2085867
    L_ERRORCODE0 11581
    L_SHORTMESSAGE0 Invalid Data
    L_LONGMESSAGE0 Profile description is invalid
    L_SEVERITYCODE0 Error
  4. dpcubed

    dpcubed New Member

    Joined:
    Aug 31, 2011
    Messages:
    9
    Payment with Paypal-cc

    product_id 29
    paysys_id paypal_pro_cc
    coupon
    action renew
    i_agree 1
    BASKET_PRODUCTS 0=>29
    BASKET_PRICES 29=>79.49


    USER greghaehl_api1.msn.com
    PWD ****************
    VERSION 56.0
    SIGNATURE ********************************************************
    METHOD DoDirectPayment
    PAYMENTACTION Sale
    IPADDRESS 68.88.252.172
    RETURNFMFDETAILS 0
    CREDITCARDTYPE Visa
    ACCT ****************
    EXPDATE 052014
    CVV2 ***
    EMAIL ewoodfield@oremundo.org
    FIRSTNAME Edward
    LASTNAME Woodfield
    STREET 4301 Shary Road
    CITY Palmhurst
    STATE TX
    ZIP 78573
    COUNTRYCODE US
    PHONENUM 956-821-4984
    CURRENCYCODE USD
    DESC
    INVNUM 4245
    L_NAME0 2 Individuals (ASA member + FREE SPOUSE)
    L_DESC0 $79.49 for each year
    L_AMT0 79.49
    L_TAXAMT0 0
    AMT 79.49
    ITEMAMT 79.49
    TAXAMT 0


    TIMESTAMP 2011-08-30T13:30:10Z
    CORRELATIONID 9497a1e5b84fd
    ACK Success
    VERSION 56.0
    BUILD 2075688
    AMT 79.49
    CURRENCYCODE USD
    AVSCODE Y
    CVV2MATCH M
    TRANSACTIONID 8YD336210E7536504


    USER greghaehl_api1.msn.com
    PWD ****************
    VERSION 56.0
    SIGNATURE ********************************************************
    METHOD CreateRecurringPaymentsProfile
    SUBSCRIBERNAME Edward Woodfield
    PROFILESTARTDATE 2012-08-30T00:00:00.00Z
    PROFILEREFERENCE 4245-29
    DESC 2 Individuals (ASA member + FREE SPOUSE)
    AUTOBILLAMT AddToNextBilling
    BILLINGPERIOD Year
    BILLINGFREQUENCY 1
    TOTALBILLINGCYCLES 0
    AMT 79.49
    TAXAMT 0
    CURRENCYCODE USD
    EMAIL ewoodfield@oremundo.org
    CREDITCARDTYPE Visa
    ACCT ****************
    EXPDATE 052014
    CVV2 ***
    FIRSTNAME Edward
    LASTNAME Woodfield
    STREET 4301 Shary Road
    CITY Palmhurst
    STATE TX
    ZIP 78573
    COUNTRYCODE US
    PHONENUM 956-821-4984


    PROFILEID I-30M8U7K4X8GG
    PROFILESTATUS ActiveProfile
    TIMESTAMP 2011-08-30T13:30:12Z
    CORRELATIONID 1734e8cd8f951
    ACK Success
    VERSION 56.0
    BUILD 2085867


    payment_cycle Yearly
    txn_type recurring_payment_profile_created
    last_name Woodfield
    next_payment_date 03:00:00 Aug 30, 2012 PDT
    residence_country US
    initial_payment_amount 0.00
    rp_invoice_id 4245-29
    currency_code USD
    time_created 06:30:12 Aug 30, 2011 PDT
    verify_sign ArgX1JoEl.LNTJ5nkTmgzkfLaDiVAc5DY2ls7FZ2T-Z3rUnKaUYzFLqO
    period_type Regular
    payer_status unverified
    tax 0.00
    payer_email ewoodfield@oremundo.org
    first_name Edward
    receiver_email support@bestroadsideservice.com
    payer_id 7AYLW9YC6T85C
    product_type 1
    shipping 0.00
    amount_per_cycle 79.49
    profile_status Active
    charset windows-1252
    notify_version 3.2
    amount 79.49
    outstanding_balance 0.00
    recurring_payment_id I-30M8U7K4X8GG
    product_name 2 Individuals (ASA member + FREE SPOUSE)
    ipn_track_id eytCLRcPcGHOnfuSHD6qnQ
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Hi,
    Ok Try to edit /amember/plugins/payment/paypal_pro/paypal_pro.inc.php and changed this :
    $vars['L_DESC'.$k] = $v['terms_description'];
    to
    $vars['L_DESC'.$k] = $p['title'];
    in function paypalSetExpressCheckout($payment_id,$products){

    Please let me know result.
  6. dpcubed

    dpcubed New Member

    Joined:
    Aug 31, 2011
    Messages:
    9
    Alexander,


    That worked perfectly. Thank you.

Share This Page