I finally got it working today, But then it stopped

I finally got it working today,
But then it stopped working.

Here's the behavior:
I enter my pledge amount and then click FUND.
I get to a page to enter my address, I enter it and click "Fund this project".
Then it takes me back to a page that looks like a combination of the previous two pages: It has the image of the Project but has the funding amount controls and "Fund this Project" button.

I had it installed on two dev folders on the same server;
http://dev.clutchmonkey.com/wp1/
and
http://dev.clutchmonkey.com/wp2/

After I got it working on wp2, I deleted the Fundrasing (and the wpmudev dashboard) plugin from the other wordpress installation /wp1/ - and now my wp2 installation doesn't work properly.

I'm not sure if this is why it doesn't work anymore, but it's the last major thing I did.

Other things I did recently:
I deleted the old projects that had already tested.

  • Peter van Gorder

    Please please please do!

    Here's what I did last; (and then I'll let it go for the evening and let you test away! - Thanks!)

    What I just experienced:

    I got all new Sandbox credentials (API username, pass, sig),
    I entered them in the /wp1/ installation settings area of your plugin.
    I went to back a project and wasn't asked for my address, but was asked for my First name, Last name, and email.
    I filled them in and clicked "Fund this Project", I was never taken to a paypal payment page, but was returned to the page with:
    "YOUR FUND OF $1 WAS SUCCESSFUL".

    So I tried it all again, but the second time I tried it DID ask for my address (and not my name or email address) and when I clicked "Fund this project" I was returned to the same page with this error:

    "There was a problem connecting with the paypal gateway. (CODE)579055 The limit for total amount of all payments exceeds the preapproval limit
    Please fill out all details"

    I'm going to hang it up for the day and let you give it a try.
    Thanks!

  • Tyler Postle

    Hey again Peter,

    I just created some sandbox credentials and tested it out, it seems to work as expected for me :slight_smile: I made a donation with another sandbox account too just to be sure it all worked as expected.

    You should see in the pledges that there is a pending one now.

    I'm wondering if maybe the time was up when you were having your earlier issues? Or if you had a reached your goal already?

    Look forward to hearing back here Peter. I'll keep a close eye on this until I go offline, which is in about 2 hours from now :slight_smile:

    Cheers,
    Tyler

  • Peter van Gorder

    OK, this is weird.
    I granted you access to the wp1 folder, yet you were able to do test on the wp2 folder? That's not right.
    Also, if you read this post:
    you will see that after I deleted the installation of the plugin in the wp1 folder it stopped the functionality of the plugin in the wp2 folder.

    That makes me think that one of the bugs lies in the way your system registers the plugin and that it's getting confused between the two different installations.

    Also, the test you just did was for a DONATION of any amount.
    I'm trying to do a PRE-AUTH for a SPECIFIC amount.
    Here's what we need (and thought this plugin does):

    List one price for a product that the user can choose to authorize for a future payment if we get enough backers to support the prodeuct.
    Run a PRE-AUTH for the set amount on their paypal account,
    At a given date, and after we get enough donors/backers/supporters then we charger their cards and send out the product, as promised.

    And we need it working on this version:
    http://dev.clutchmonkey.com/wp1/

    I look forward to hearing from you!
    Thank you!

  • Tyler Postle

    Hey Peter,

    My apologies, the site selected for this thread at the beginning was /wp2 so I assumed it was that one.

    I just set it up on /wp1 now and it looks to be working so far :slight_smile:

    I tried it with the pre-sets too. I did 1 run with the address form included and 1 without it. Both processed as expected.

    Let me know if it's working for you as well!

    Look forward to hearing back.

    All the best,
    Tyler

    PS. We should be able to hide the text field so users can't enter in any amount and are forced to select a pre-set. Let's just make sure it's working first!

  • Peter van Gorder

    OK, I just tried it with your paypal creds and yes, I saw it working.
    But it is discouraging that it isn't working with OUR paypal credentials.

    I just went into the settings and changed to our paypal credentials and now it doesn't work. Should I send you a picture of our SANDBOX creds so you can verify that I didn't get any extra spaces before or after the API numbers?

    Is there some additional setting in Paypal Sandbox we should know about?

  • Peter van Gorder

    Sorry about the wrong email (duh).
    But I changed it and it's still not working.
    It still "loops"

    Here's one I just created and tried...
    http://dev.clutchmonkey.com/wp1/fundraisers/ourcredsandcorrectemail/
    But your test project also doesn't work anymore either, so I know it's not tied to the product settings, it must be tied to the credentials.

    Also, I double checked and the email address "jena@clutchmonkey.com" is "confirmed" in paypal sandbox.

  • Tyler Postle

    Hey Peter,

    Thanks for the update! I just changed the credentials back to mine to test your new project and see if it worked with mine, it worked fine, so as you mentioned - it definitely has to do with the credentials.

    Can you just double check that all the fields you enter are from your sandbox account. If you want, you can send me access to your PayPal developer account and then I can take a closer look at the PayPal end to see what the issue is :slight_smile:

    You can send that privately through our contact form:

    Send in:

    Subject: "Attn: Tyler Postle"
    PayPal dev username/password
    -link back to this thread for reference

    Select "I have a different question" for your topic - this and the subject line ensure that it gets assigned to me :slight_smile:

    https://premium.wpmudev.org/contact/

    This is of course if you don't have personal information in that account. I completely understand if you would rather not provide access for that and if that's the case then we can keep troubleshooting here until we get this sorted.

    Just to be sure, when you created your PayPal sandbox account it was a merchant account correct? I believe that is the only one that offers api credentials so I'm sure it was but wanted to ask just in-case.

    Cheers,
    Tyler

  • Peter van Gorder

    OK, some success, but also I'm a bit more confused!

    In trying to change our password to something generic I could give you I learned that there is both a

    https://www.sandbox.paypal.com
    AND
    https://developer.paypal.com/webapps/developer/index

    So I tried using the "Classic API" credentials I found at developer.paypal.com and it worked!!!!

    So... what the heck is sandbox.paypal.com ?!?!?!
    I just double checked your documentation and found that you do indeed mention Sandbox. You also mention x.com, but I think that became ebayinc.com ??

    Please advise! Which am I supposed to be using?

    Also, given that I do have SOME credentials that work, can you suggest how to hid the option to let people select their funding amount and how I can force them to only be able to fund a forced amount?
    I know how to hide things with CSS, but I don't know how to force an amount into the input box on the submission form. Does this make sense?

    Thanks! We're making progress!

  • Peter van Gorder

    OK, some success, but also I'm a bit more confused!

    In trying to change our password to something generic I could give you I learned that there is both a

    https://www.sandbox.paypal.com
    AND
    https://developer.paypal.com/webapps/developer/index

    So I tried using the "Classic API" credentials I found at developer.paypal.com and it worked!!!!

    So... what the heck is sandbox.paypal.com ?!?!?!
    I just double checked your documentation and found that you do indeed mention Sandbox. You also mention x.com, but I think that became ebayinc.com ??

    Please advise! Which am I supposed to be using?

    Also, given that I do have SOME credentials that work, can you suggest how to hid the option to let people select their funding amount and how I can force them to only be able to fund a forced amount?
    I know how to hide things with CSS, but I don't know how to force an amount into the input box on the submission form. Does this make sense?

    Thanks! We're making progress! I'm sure this will help others as well!

  • Tyler Postle

    Hey Peter,

    Awesome! Glad we got it working :slight_smile:

    sandbox.paypal is where you log into the account you created on developer.paypal.com so you can review transactions/manage the account like a normal PayPal account. This also allows you to setup the IPN url which is important for some plugins.

    x.com I believe it where you use to get the application ID from; however, you will need to go to this link now: https://www.paypal-apps.com/user/my-account/applications/new

    It will be updated in the usage/plugin soon :slight_smile:

    Also, given that I do have SOME credentials that work, can you suggest how to hid the option to let people select their funding amount and how I can force them to only be able to fund a forced amount?

    You can use this CSS here:

    .wdf_pledge_amount, .currency {
    display: none;
    }

    This will hide the text box so visitors can't manually enter an amount. So, now they will be forced to select one of the pre-set amounts you have listed - ie. $10.

    Once selected they can click the fund project button and everything should work as expected :slight_smile:

    If you don't have a custom CSS field for that CSS then you will want to use this plugin here: https://wordpress.org/plugins/simple-custom-css/

    Hope this helps Peter! Let us know if you still need any further assistance.

    All the best,
    Tyler

  • Peter van Gorder

    It did help. Thanks.

    Ideally I'll find some way to force the one and only button to be checked by default - and then hide it. That way all they have to do is click "Fund it!"

    I'm still baffled as to why it worked once, then didn't. Perhaps it's something where if you set an API for the first time it sets it in both "Developers area" and the "Sandbox area", but after that it only changes the number in ONE of those areas??? weird.

    Anyways, thanks so much.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.