Click here to Skip to main content
16,004,686 members

Comments by Simphiwe_Magubane (Top 5 by date)

Simphiwe_Magubane 16-Sep-19 17:19pm View    
The TextChanged event is for when the content of the Textbox changes and only if it is changed by the user.
Simphiwe_Magubane 16-Sep-19 16:12pm View    
OK so here is the problem am having

paypal.Button.render({
//Configure environment
env: 'production', // To test, set to `sandbox`
payment: function () {
// Set up the payment here, when the buyer clicks on the button
},
onAuthorize: function (data, actions) {
// Call your server to execute the payment
if (error === 'INSTRUMENT_DECLINED') {
actions.restart();
}
}
}, '#paypal-button');
Simphiwe_Magubane 16-Sep-19 16:06pm View    
What am actually trying to do is to perform a payment with 3 steps:

1) Order Page with PayNow Button for users to click

2) PayPal Payment

3) Redirect to "Payment completed page"

What I want to complete is to have an ID going from step 1 to 3. What I tried to do is to insert this field into the "custom" variable like:


After the PayPal payment, PayPal redirect me to my page:

http://www.mysite.cm/tx=blalba?aaaa

With this URL there is no custom Field. If from API, I contact PayPal to have the sale details, I get nothing related to my custom Field.




Simphiwe_Magubane 16-Sep-19 16:03pm View    
Deleted
What am actually trying to do is to perform a payment with 3 steps:

1) Order Page with PayNow Button for users to click

2) PayPal Payment

3) Redirect to "Payment completed page"

What I want to complete is to have an ID going from step 1 to 3. What I tried to do is to insert this field into the "custom" variable like:


After the PayPal payment, PayPal redirect me to my page:

http://www.mysite.cm/tx=blalba?aaaa

With this URL there is no custom Field. If from API, I contact PayPal to have the sale details, I get nothing related to my custom Field.





Simphiwe_Magubane 16-Sep-19 15:35pm View    
Here is the code for the user to enter a value manually into a textBox, and clicking the button (with the product selected) will update the quantity. There's no crash, but it doesn't do anything.

private void PlusOne_Click(object sender, EventArgs e)
{
foreach (ListViewItem list in listView1.SelectedItems)
{
list.SubItems.Add(addBox.Text);
}
}

private void addBox_TextChanged(object sender, EventArgs e)
{
int addOne = int.Parse(addBox.Text);
}