niente ancora, ho provato come consigliavi di mettere tutto nel blocco success ma il processo di pagamento non si avvia. resta bloccato in attesa.

codice:
			jQuery.ajax({
			   type: "POST",
			   url: "form.php",
			   //data: data,
			   data: $("#contact").serialize() + "&pagamento=paypal", // serializes the form's elements. sella | paypal
			   success: function(data){


                // Make a call to the REST api to create the payment
                return actions.payment.create({
                    payment: {
                        transactions: [
                            {
								amount: { total: '9.01', currency: 'EUR' },
								item_list: {
									items: [
										{
										name: 'hat',
										description: 'Brown hat.',
										quantity: '1',
										price: '9.01',
										currency: 'EUR',
										sku: data
										}
									]
								}
                            }
                        ]
                    }
                });
				
				}
			 });