<input type="hidden" name="startDate" value='<?php echo $date_up; ?>'>
<input type="hidden" name="amount" value='9.95'>
<input type="hidden" name="totalOccurrences" value='9999'>
<input type="hidden" name="length" value='1'>
<input type="hidden" name="unit" value='months'>
<input type="hidden" name="trialOccurrences" value='0'>
<input type="hidden" name="trialAmount" value='0'>
Where $date_up == Tomorrow;
It is creating the subscription but is not charging it. I am presuming it is going to charge next month and it is for some reason giving it a trial? Should I remove trial from the submission altogether?
I have been looking at this for days but after posting this I just imagined I was someone else and figured it out. The date was a month out because of how I rearranged it with php:
$date_up = date('Y-m-d', $date_up);
I had used "h" instead of "m" or something like this and it made the subscription start a month in advance.
If you're having this problem in the future whoever you are - go check your authorize.net subscription creation date and make sure that you didn't set it too far out like i did expecting it to charge the next day.
Related
I added a PayPal Donate button on my site, with that code
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business" value="pro-email#gmail.com">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="item_name" value="Donation">
<input type="hidden" name="item_number" value="Donation">
<select name="amount"><option value="2.00">$2.00</option><option value="5.00">$5.00</option><option value="10.00">$10.00</option></select>
<input type="hidden" name="currency_code" value="EUR">
<input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" alt="PayPal - The safer, easier way to pay online">
</form>
I want add and show Donators names or emails with the $$ amount on list on my website after then when someone pays. How can i do this?
I would set something like up using PayPal Instant Payment Notification (IPN).
It will automatically POST data about transactions to a listener script you have on your server. That script can receive the data and load it into a database table called "donors" or whatever you want to call it.
Then on your site you can simply pull the data from the donors table and display it accordingly.
Since you're using WordPress I'd recommend taking a look at this PayPal IPN for WordPress plugin. It's free and it will get you up and running with IPN very quickly. It logs all of the IPN data in WordPress and allows you to easily extend the plugin using a number of hooks to trigger events based on different IPN types or payment status.
I am using Django 1.7 with django-paypal.
I follow the tutorial, everything is working fine.
However,although the payment form is hidden, and yet I found out that user can temper the amount by simply using browser Inspect Element feature.
eg.
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input id="id_business" name="business" type="hidden" value="xxx#example.com">
<input id="id_amount" name="amount" type="hidden" value="10.0">
<input id="id_item_name" name="item_name" type="hidden" value="2">
<input id="id_notify_url" name="notify_url" type="hidden" value="http://www.example.com/pp/ipn/">
<input id="id_cancel_return" name="cancel_return" type="hidden" value="http://www.example.com/order/21/">
<input id="id_return_url" name="return" type="hidden" value="http://www.example.com/thank-you">
<input id="id_invoice" name="invoice" type="hidden" value="21"><input id="id_cmd" name="cmd" type="hidden" value="_xclick">
<input id="id_charset" name="charset" type="hidden" value="utf-8">
<input id="id_currency_code" name="currency_code" type="hidden" value="USD">
<input id="id_no_shipping" name="no_shipping" type="hidden" value="1">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="Buy it Now">
</from>
Is it a bug or I missing something here? How do I prevent user fraudulent the payments? Should I verify the payment on the ipn view??
The button code you have created is Clear text button which is not a hosted button.
In order to secure the button from tampering, I would suggest you to create a hosted button.
Steps to create :
1) login to www.paypal.com
2) Navigate to My Profile->My Selling tools or My selling Preferences
3) Click "Update" beside "PayPal buttons"
4) Create new button and enter all the required information,
5) In Step 2, check the box(Save button at PayPal), click Save
Hosted buttons are stored on PayPal. The parameters associated with this kind of button are secure.
Hosted buttons provide the greatest flexibility because you can instruct PayPal to change them dynamically, and PayPal maintains information about their state, such as the inventory level associated with the button.
I've built a simple form to open up a JIRA ticket based on user input. I've almost got all of it, except I don't know how to use the form element in the POST request. Here's what I have so far:
<form target="_blank" action='http://baseurl.com/secure/CreateIssueDetails!init.jspa?pid=10517&issuetype=3&summary=Change+application+name+to+{{new_name}}&reporter={{request.user}}&priority=5&assignee=xxx' method='post'>
<label for="new_name">New name: </label>
<input id="new_name" type="text" name="new_name" value="{{item.name}}">
<input type="submit" value="Create JIRA ticket">
</form>
So I just need the value the user puts in the new_name element to be passed into the appropriate spot in the URL. How do I access that?
It sounds like you're getting POST and GET mixed. POST data would not be included in the URL itself, but rather in the request payload itself.
So, your URL would be http://baseurl.com/secure/CreateIssueDetails!init.jspa
The payload would be separately put in the body of the HTTP request.
If you need to use a GET method, the URL itself would be the same as above, but the URL that eventually gets hit would be http://baseurl.com/secure/CreateIssueDetails!init.jspa?new_name=WHATEVERVALUE.
If you need additional key-value pairs to get passed, just add them as hidden fields and pass them that way.
Your code, edited:
<form target="_blank" action='http://baseurl.com/secure/CreateIssueDetails!init.jspa' method='post'> <!-- ARE YOU SURE IT'S A POST REQUEST AND NOT A GET? -->
<label for="new_name">New name: </label>
<input id="new_name" type="text" name="new_name" value="{{item.name}}">
<input type="hidden" value="10517" name="pid">
<input type="hidden" value="3" name="issuetype">
<input type="hidden" value="5" name="priority">
<input type="hidden" value="Change application name to {{new_name}}" name="summary">
<input type="hidden" value="{{request.user}}" name="reporter">
<input type="hidden" value="xxx" name="assignee">
<input type="submit" value="Create JIRA ticket">
</form>
Makes sense?
Sorry I'm new to django, I need to transfer a list by POST in django, The problem is that the list elements need to be complex objects, dictionaries every list entry should have first name and last name parameters.
I only know how to make list of simple values like this :
<input type="hidden" name="alist" value="1" />
<input type="hidden" name="alist" value="2" />
<input type="hidden" name="alist" value="3" />
and then :
alist = request.POST.getlist('alist')
What is the best practice of doing this?
Thanks
It's not at all clear what you want to do, but perhaps you could your list as JSON and post that.
What could be wrong? All of a sudden, I'm getting an "invalid signature string" error when I try to process payment. Here is an example of one form:
<form action="https://authorize.payments.amazon.com/pba/paypipeline" method="post">
<input type="hidden" name="abandonUrl" value="http://www.customerfind.com/canceled.php" >
<input type="hidden" name="accessKey" value="AKIAJXWUH5BVV74GEPGQ" >
<input type="hidden" name="amount" value="USD 12" >
<input type="hidden" name="cobrandingStyle" value="logo" >
<input type="hidden" name="collectShippingAddress" value="0" >
<input type="hidden" name="description" value="CustomerFind Twitter Subscription" >
<input type="hidden" name="immediateReturn" value="1" >
<input type="hidden" name="ipnUrl" value="http://www.customerfind.com/aws_ipn.php" >
<input type="hidden" name="processImmediate" value="0" >
<input type="hidden" name="recurringFrequency" value="1 month" >
<input type="hidden" name="referenceId" value="11" >
<input type="hidden" name="returnUrl" value="http://www.customerfind.com/controlpanel.php" >
<input type="hidden" name="signature" value="NmTfzEwmnzY0TT5yfD5Vh/UPxPM=" >
<input type="image" src="http://g-ecx.images-amazon.com/images/G/01/asp/golden_large_subscribe_withlogo_whitebg.gif" border="0"></form>
I think you probably should post your problem in Amazon's support center instead, they seem to know about these problems and give responses to them. Also, you might find similar errors from other users and solutions that solved their problems.
For example, after some seconds of searching, I found this entry from the last year. They also have a search engine there so you can look for posts more up-to-date.